Add TheNewEuropean.co.uk

This commit is contained in:
magnolia1234 2022-09-17 08:30:01 +02:00
parent 71f03cf321
commit 8b8e3a2906
6 changed files with 38 additions and 2 deletions

View file

@ -377,6 +377,7 @@ Grouped in options:\
[The Economist](https://www.economist.com) -
[The Independent](https://www.independent.co.uk) -
[The Irish Times](https://www.irishtimes.com) -
[The New European](https://www.theneweuropean.co.uk) -
[The New Statesman](https://www.newstatesman.com) -
[The Spectator](https://www.spectator.co.uk) -
[The Telegraph](https://www.telegraph.co.uk) -

View file

@ -5,6 +5,7 @@ Post-release
Add 60 Millions de consommateurs
Add BusinessPost.ie
Add Private Equity News
Add TheNewEuropean.co.uk
Add Weltkunst.de
Fix Esprit.presse.fr
Fix Grupo El Comercio

View file

@ -2225,6 +2225,18 @@ else if (matchDomain('the-tls.co.uk')) {
removeDOMElement(paywall);
}
else if (matchDomain('theneweuropean.co.uk')) {
let paywall = document.querySelector('div[data-show-fade-on-noaccess]');
if (paywall) {
removeDOMElement(paywall);
let content = document.querySelector('div[data-show-has-access]');
if (content)
content.removeAttribute('data-show-has-access');
}
let banners = document.querySelectorAll('div[data-show-subs-blocked]');
removeDOMElement(...banners);
}
else if (matchDomain('thetimes.co.uk')) {
let url = window.location.href;
if (window.location.hostname !== 'epaper.thetimes.co.uk') {
@ -3629,7 +3641,8 @@ else if (matchDomain('theathletic.com')) {
amp_unhide_access_hide('', '*="NOT granted"');
}
let apron = document.querySelector('div#free-apron-cta, div.slideup-free-apron-container');
removeDOMElement(apron);
let ads = document.querySelectorAll('div.ad-container');
removeDOMElement(apron, ...ads);
}
else if (matchDomain('theatlantic.com')) {

View file

@ -583,6 +583,7 @@
"*://*.themercury.com.au/*",
"*://*.thenation.com/*",
"*://*.thenewatlantis.com/*",
"*://*.theneweuropean.co.uk/*",
"*://*.thepeterboroughexaminer.com/*",
"*://*.thepointmag.com/*",
"*://*.theprovince.com/*",
@ -706,5 +707,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.4.6"
"version": "2.8.4.7"
}

View file

@ -1804,6 +1804,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.thenewatlantis\.com\/.+\/thenewatlantis\/js\/(gate|donate)\.js/
},
"The New European": {
domain: "theneweuropean.co.uk",
allow_cookies: 1,
block_regex: /cdn\.tinypass\.com\//
},
"The New Republic": {
domain: "newrepublic.com",
allow_cookies: 1,

View file

@ -33,6 +33,21 @@
"domain": "penews.com",
"useragent": "googlebot"
},
"The New European": {
"domain": "theneweuropean.co.uk",
"allow_cookies": 1,
"block_regex": "cdn\\.tinypass\\.com\\/",
"cs_code": [{
"cond": "div[data-show-fade-on-noaccess]",
"rm_elem": 1,
"elems": [{
"cond": "div[data-show-has-access]",
"rm_attrib": "data-show-has-access"
}
]
}
]
},
"Weltkunst": {
"domain": "weltkunst.de",
"allow_cookies": 1,