diff --git a/README.md b/README.md index 5e11e42..c786de8 100644 --- a/README.md +++ b/README.md @@ -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) - diff --git a/changelog.txt b/changelog.txt index 76cdb3a..15ec2e7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/contentScript.js b/contentScript.js index b4bf5b6..51daaf5 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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')) { diff --git a/manifest.json b/manifest.json index 3985c26..fce50c2 100644 --- a/manifest.json +++ b/manifest.json @@ -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" } diff --git a/sites.js b/sites.js index ef6e928..3f6a1a0 100644 --- a/sites.js +++ b/sites.js @@ -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, diff --git a/sites_updated.json b/sites_updated.json index c60d4ad..fb9408c 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -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,