Fix Nzz.ch (css)

This commit is contained in:
magnolia1234 2024-04-01 09:35:20 +02:00
parent 14a4d6956f
commit c1a2347def
7 changed files with 18 additions and 15 deletions

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release Post-release
Fix Nzz.ch (css)
* v3.6.2.0 (2024-04-01) * v3.6.2.0 (2024-04-01)
Add American Purpose Add American Purpose

View file

@ -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'); let ads = document.querySelectorAll('div.resor');
hideDOMElement(...ads); 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')) { else if (matchDomain('tt.com')) {
let div_hidden = document.querySelectorAll('.exclusive-elem'); let div_hidden = document.querySelectorAll('.exclusive-elem');
for (let elem of div_hidden) for (let elem of div_hidden)

View file

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.6.2.0" "version": "3.6.2.1"
} }

View file

@ -866,5 +866,5 @@
"*://archive.vn/*", "*://archive.vn/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.6.2.0" "version": "3.6.2.1"
} }

View file

@ -1762,8 +1762,7 @@ var defaultSites = {
"Neue Zürcher Zeitung (not epaper)": { "Neue Zürcher Zeitung (not epaper)": {
domain: "nzz.ch", domain: "nzz.ch",
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\.piano\.io\/|ens\.nzz\.ch\/.+\/Bootstrap\.js)/, block_regex: /(\.piano\.io\/|ens\.nzz\.ch\/.+\/Bootstrap\.js)/
useragent: "googlebot"
}, },
"New Left Review": { "New Left Review": {
domain: "newleftreview.org", domain: "newleftreview.org",
@ -2563,8 +2562,7 @@ var defaultSites = {
"The Market.ch": { "The Market.ch": {
domain: "themarket.ch", domain: "themarket.ch",
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\.piano\.io\/|ens\.themarket\.ch\/.+\/Bootstrap\.js)/, block_regex: /(\.piano\.io\/|ens\.themarket\.ch\/.+\/Bootstrap\.js)/
useragent: "googlebot"
}, },
"The Nation": { "The Nation": {
domain: "thenation.com", domain: "thenation.com",

View file

@ -73,6 +73,13 @@
"add_ext_link_type": "archive.is", "add_ext_link_type": "archive.is",
"upd_version": "3.6.1.3" "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": { "Newslaundry": {
"domain": "newslaundry.com", "domain": "newslaundry.com",
"allow_cookies": 1, "allow_cookies": 1,

View file

@ -2,8 +2,8 @@
"addons": { "addons": {
"magnolia@12.34": { "magnolia@12.34": {
"updates": [ "updates": [
{ "version": "3.6.1.0", { "version": "3.6.2.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.6.1.0.xpi" } "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.6.2.0.xpi" }
] ]
} }
} }