diff --git a/changelog.txt b/changelog.txt index 82def67..3dafd6c 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 +Fix Nzz.ch (css) * v3.6.2.0 (2024-04-01) Add American Purpose diff --git a/contentScript.js b/contentScript.js index 68a84d9..e29ac11 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1219,7 +1219,10 @@ else if (matchDomain('nw.de')) { } } -else if (matchDomain('nzz.ch')) { +else if (matchDomain(['nzz.ch', 'themarket.ch'])) { + let fade = document.querySelectorAll('.nzzinteraction'); + for (let elem of fade) + elem.classList.remove('nzzinteraction'); let ads = document.querySelectorAll('div.resor'); hideDOMElement(...ads); } @@ -1355,12 +1358,6 @@ else if (matchDomain('tagesspiegel.de')) { } } -else if (matchDomain('themarket.ch')) { - let fade = document.querySelectorAll('.nzzinteraction'); - for (let elem of fade) - elem.classList.remove('nzzinteraction'); -} - else if (matchDomain('tt.com')) { let div_hidden = document.querySelectorAll('.exclusive-elem'); for (let elem of div_hidden) diff --git a/custom/manifest.json b/custom/manifest.json index 86d240a..ca315f0 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.2.0" + "version": "3.6.2.1" } diff --git a/manifest.json b/manifest.json index 88b6d18..2e2cfe0 100644 --- a/manifest.json +++ b/manifest.json @@ -866,5 +866,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.2.0" + "version": "3.6.2.1" } diff --git a/sites.js b/sites.js index a240450..7b84de7 100644 --- a/sites.js +++ b/sites.js @@ -1762,8 +1762,7 @@ var defaultSites = { "Neue Zürcher Zeitung (not epaper)": { domain: "nzz.ch", allow_cookies: 1, - block_regex: /(\.piano\.io\/|ens\.nzz\.ch\/.+\/Bootstrap\.js)/, - useragent: "googlebot" + block_regex: /(\.piano\.io\/|ens\.nzz\.ch\/.+\/Bootstrap\.js)/ }, "New Left Review": { domain: "newleftreview.org", @@ -2563,8 +2562,7 @@ var defaultSites = { "The Market.ch": { domain: "themarket.ch", allow_cookies: 1, - block_regex: /(\.piano\.io\/|ens\.themarket\.ch\/.+\/Bootstrap\.js)/, - useragent: "googlebot" + block_regex: /(\.piano\.io\/|ens\.themarket\.ch\/.+\/Bootstrap\.js)/ }, "The Nation": { domain: "thenation.com", diff --git a/sites_updated.json b/sites_updated.json index e020217..655edd2 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -73,6 +73,13 @@ "add_ext_link_type": "archive.is", "upd_version": "3.6.1.3" }, + "Neue Zürcher Zeitung": { + "domain": "nzz.ch", + "allow_cookies": 1, + "block_regex": "(\\.piano\\.io\\/|ens\\.nzz\\.ch\\/.+\\/Bootstrap\\.js)", + "cs_code": "[{\"cond\":\".nzzinteraction\", \"rm_class\":\"nzzinteraction\"}]", + "upd_version": "3.6.2.1" + }, "Newslaundry": { "domain": "newslaundry.com", "allow_cookies": 1, diff --git a/updates.json b/updates.json index 0951e60..8322777 100644 --- a/updates.json +++ b/updates.json @@ -2,8 +2,8 @@ "addons": { "magnolia@12.34": { "updates": [ - { "version": "3.6.1.0", - "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.6.1.0.xpi" } + { "version": "3.6.2.0", + "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.6.2.0.xpi" } ] } }