From d399e8bc6459a48fd23cbbed1beedd47037020a1 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 31 Oct 2023 07:25:02 +0100 Subject: [PATCH] Add The Impression --- README.md | 1 + background.js | 5 ++--- changelog.txt | 1 + contentScript.js | 9 ++++++++ custom/manifest.json | 2 +- manifest.json | 3 ++- sites.js | 4 ++++ sites_updated.json | 51 ++++++-------------------------------------- 8 files changed, 26 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index 1a6a563..eb2ea2e 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,7 @@ Grouped in options:\ [The Intercept](https://theintercept.com) - [The Daily Beast](https://www.thedailybeast.com) - [The Daily Wire](https://www.dailywire.com) - +[The Impression](https://theimpression.com) - [The Juggernaut](https://www.thejuggernaut.com) - [The Nation](https://www.thenation.com) - [The New Atlantis](https://www.thenewatlantis.com) - diff --git a/background.js b/background.js index 545d041..7498dd3 100644 --- a/background.js +++ b/background.js @@ -487,9 +487,8 @@ ext_api.storage.local.get({ } else { ext_api.management.getSelf(function (result) { if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) { - let new_groups = ['###_au_nine_ent', '###_uk_delinian']; - let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))) || - (!enabledSites.includes('###_usa_craincomm') && enabledSites.includes('###_usa_genomeweb')); + let new_groups = []; + let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))); if (open_options) ext_api.runtime.openOptionsPage(); } diff --git a/changelog.txt b/changelog.txt index 0d543cf..1985c41 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Add The Impression Fix WSJ (Googlebot for cn/jp subdomain) Update custom sites (link to 1ft.io) diff --git a/contentScript.js b/contentScript.js index 87045b1..850a195 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4927,6 +4927,15 @@ else if (matchDomain(['thehindu.com', 'thehindubusinessline.com'])) { insert_script(hindu_main); } +else if (matchDomain('theimpression.com')) { + let paywall = document.querySelector('div#modalpostsubscribe'); + if (paywall) { + let blureffect = document.querySelectorAll('div.blureffect'); + for (let elem of blureffect) + elem.classList.remove('blureffect'); + } +} + else if (matchDomain(['thejuggernaut.com', 'jgnt.co'])) { let paywall = pageContains('div.font-mono', /\Read this article and many more by subscribing today/); if (paywall.length) { diff --git a/custom/manifest.json b/custom/manifest.json index a03fe64..4403780 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.4.0.1" + "version": "3.4.0.2" } diff --git a/manifest.json b/manifest.json index 342c125..e95a644 100644 --- a/manifest.json +++ b/manifest.json @@ -666,6 +666,7 @@ "*://*.thehill.com/*", "*://*.thehindu.com/*", "*://*.thehindubusinessline.com/*", + "*://*.theimpression.com/*", "*://*.theintercept.com/*", "*://*.thejuggernaut.com/*", "*://*.thelawyersdaily.ca/*", @@ -807,5 +808,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.4.0.1" + "version": "3.4.0.2" } diff --git a/sites.js b/sites.js index ce7fee3..d5e3554 100644 --- a/sites.js +++ b/sites.js @@ -2222,6 +2222,10 @@ var defaultSites = { allow_cookies: 1, block_regex: /(cdn\.cxense\.com\/|\.piano\.io\/xbuilder\/experience\/execute|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/ }, + "The Impression": { + "domain": "theimpression.com", + "allow_cookies": 1 + }, "The Independent": { domain: "independent.co.uk", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index fd824d0..ba3a3b3 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -44,13 +44,6 @@ "block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)", "upd_version": "3.2.7.1" }, - "Business Post.ie": { - "domain": "businesspost.ie", - "allow_cookies": 1, - "block_regex": "\\.businesspost\\.ie\\/api\\/tinypass\\.min\\.js", - "cs_dompurify": 1, - "upd_version": "3.3.7.3" - }, "CartaCapital": { "domain": "cartacapital.com.br", "allow_cookies": 1, @@ -63,12 +56,6 @@ "block_regex": "\\.qiota\\.com\/", "upd_version": "3.3.9.8" }, - "O Estado de S. Paulo": { - "domain": "estadao.com.br", - "allow_cookies": 1, - "block_regex": "(\\.estadao\\.com\\.br\\/(paywall\\/|access\\.js)|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)", - "upd_version": "3.3.7.4" - }, "Financial News (London)": { "domain": "fnlondon.com", "allow_cookies": 1, @@ -106,25 +93,6 @@ "block_js_inline": "\\.journalde.+\\.com\\/", "upd_version": "3.3.8.5" }, - "Le Point": { - "domain": "lepoint.fr", - "allow_cookies": 1, - "block_regex": "\\.poool\\.fr", - "ld_google_webcache": "aside.paywall|div#contenu", - "upd_version": "3.3.7.8" - }, - "Mitteldeutsche Zeitung": { - "domain": "mz.de", - "allow_cookies": 1, - "ld_google_webcache": "div.fp-paywall|div[data-t-name='Article']", - "upd_version": "3.3.7.5" - }, - "NyTeknik": { - "domain": "nyteknik.se", - "allow_cookies": 1, - "useragent": "googlebot", - "upd_version": "3.3.7.2" - }, "The Baffler": { "domain": "thebaffler.com", "allow_cookies": 1, @@ -150,6 +118,12 @@ "block_regex": "(cdn\\.cxense\\.com\\/|\\.piano\\.io\\/xbuilder\\/experience\\/execute|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", "upd_version": "3.3.9.5" }, + "The Impression": { + "domain": "theimpression.com", + "allow_cookies": 1, + "cs_code": "[{\"cond\":\"div#modalpostsubscribe\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.blureffect\", \"rm_class\":\"blureffect\"}]}]", + "upd_version": "3.4.0.2" + }, "The New York Times": { "domain": "nytimes.com", "allow_cookies": 1, @@ -161,18 +135,5 @@ "domain": "spectator.com.au", "useragent": "googlebot", "upd_version": "3.3.9.3" - }, - "UnHerd": { - "domain": "unherd.com", - "allow_cookies": 1, - "block_regex": "\\.piano\\.io", - "cs_code": "[{\"cond\":\"div#premiumpreview\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div#premiumcontent\", \"rm_attrib\":\"id\"}]}]", - "upd_version": "3.3.7.6" - }, - "Volksstimme": { - "domain": "volksstimme.de", - "allow_cookies": 1, - "ld_google_webcache": "div.fp-paywall|div[data-t-name='Article']", - "upd_version": "3.3.7.5" } }