diff --git a/background.js b/background.js index 6301bfa..41c5843 100644 --- a/background.js +++ b/background.js @@ -35,7 +35,6 @@ var restrictions = { 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, 'seekingalpha.com': /\/seekingalpha\.com($|\/($|(amp\/)?(article|news)\/|samw\/))/, 'statista.com': /^((?!\.statista\.com\/study\/).)*$/, - 'tagesspiegel.de': /^((?!\/(background|checkpoint)\.tagesspiegel\.de\/).)*$/, 'techinasia.com': /\.techinasia\.com\/.+/, 'theatlantic.com': /^((?!\/newsletters\.theatlantic\.com\/).)*$/, 'thetimes.co.uk': /^((?!epaper\.thetimes\.co\.uk).)*$/, diff --git a/changelog.txt b/changelog.txt index d34b6eb..17c2ce8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -8,6 +8,7 @@ Add Jacobin.de Add Substack (link to Google Search Tool; opt-in to custom sites for custom domains) Fix Berlingske.dk Fix NYTimes +Fix Tagesspiegel.de (background; link to Google Search Tool) Remove Zeit.de (fix obsolete) Update block general paywall script (Ippen.space) Update popup (12ft.io) diff --git a/contentScript.js b/contentScript.js index d0b7edd..c4d3b20 100644 --- a/contentScript.js +++ b/contentScript.js @@ -913,12 +913,20 @@ else if (matchDomain('tagesanzeiger.ch')) { else if (matchDomain('tagesspiegel.de')) { let url = window.location.href; - let paywall = document.querySelector('div.article--paid > div'); + let paywall = document.querySelector('div.article--paid > div:not([id])'); if (paywall) { removeDOMElement(paywall); let article = document.querySelector('div.article--paid'); if (article) article.firstChild.before(archiveLink(url)); + } else { + paywall = document.querySelector('section.ts-paywall, div#pw'); + if (paywall) { + removeDOMElement(paywall); + let article = document.querySelector('main p'); + if (article) + article.firstChild.before(googleSearchToolLink(url)); + } } } diff --git a/custom/manifest.json b/custom/manifest.json index 84d4954..8f6bb62 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.3.5" + "version": "3.1.3.6" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 2983a9b..b545583 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -228,6 +228,12 @@ "domain": "lagazettedescommunes.com", "useragent": "googlebot" }, + "Lemonde.fr": { + "add_ext_link": "section.paywall|article", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "lemonde.fr" + }, "Libraryjournal.com": { "allow_cookies": 1, "block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js", @@ -266,6 +272,12 @@ "Marketscreener.com (only free articles)": { "domain": "marketscreener.com" }, + "Mediapart.fr": { + "add_ext_link": "div#paywall_no_variance|main", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "mediapart.fr" + }, "Medpagetoday.com": { "allow_cookies": 1, "domain": "medpagetoday.com", @@ -437,6 +449,12 @@ "block_regex": "\\.thefashionlaw\\.com\\/evolok\\/.+\\/ev-widgets\\.min\\.js", "domain": "thefashionlaw.com" }, + "Theinformation.com": { + "add_ext_link": "div[data-paywall]|div.locked", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "theinformation.com" + }, "Themonthly.com.au": { "domain": "themonthly.com.au" }, @@ -476,6 +494,12 @@ "block_regex": "\\.tinypass\\.com", "domain": "washingtontimes.com" }, + "Welt.de": { + "add_ext_link": "div.contains_walled_content|article", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "welt.de" + }, "Wuv.de": { "allow_cookies": 1, "domain": "wuv.de", diff --git a/manifest.json b/manifest.json index baa114e..4d22923 100644 --- a/manifest.json +++ b/manifest.json @@ -753,5 +753,5 @@ "*://html.onlineviewer.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.3.5" + "version": "3.1.3.6" }