Fix Kurier.at (js & css)

This commit is contained in:
magnolia1234 2024-02-12 20:55:26 +01:00
parent 021b71dc46
commit 498884ed66
6 changed files with 22 additions and 14 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
Post-release
Fix Kurier.at (js & css)
Fix Nw.de (amp-redirect)
Fix TheTimes.co.uk (mobile images)

View file

@ -1141,17 +1141,17 @@ else if (matchDomain(['ksta.de', 'rundschau-online.de'])) {
}
else if (matchDomain('kurier.at')) {
let paywall = document.querySelector('div.plusContent');
let paywall = document.querySelector('div#cfs-paywall-container');
if (paywall) {
paywall.classList.remove('plusContent');
window.setTimeout(function () {
let elem_hidden = paywall.querySelectorAll('.ng-star-inserted[style="display: none;"]');
for (let elem of elem_hidden)
elem.removeAttribute('style');
}, 2000);
removeDOMElement(paywall);
let div_hidden = document.querySelector('div.paywall');
if (div_hidden) {
div_hidden.classList.remove('paywall');
div_hidden.removeAttribute('style');
}
}
let banners = document.querySelectorAll('div#view-offer, app-paywall, adfullbanner, outbrain');
removeDOMElement(...banners);
let banners = document.querySelectorAll('div[data-outbrain], div.OUTBRAIN');
hideDOMElement(...banners);
}
else if (matchDomain('motorradonline.de')) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.5.1"
"version": "3.5.5.2"
}

View file

@ -852,5 +852,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.5.1"
"version": "3.5.5.2"
}

View file

@ -1317,10 +1317,10 @@ var defaultSites = {
"Krautreporter.de": {
domain: "krautreporter.de"
},
"Kurier.at (do not block TinyPass-script externally)": {
"Kurier.at": {
domain: "kurier.at",
allow_cookies: 1,
block_regex: /cdn\.cxense\.com\//
block_regex: /\.tinypass\.com\//
},
"L'Écho": {
domain: "lecho.be",
@ -2902,7 +2902,7 @@ var defaultSites = {
domain: "piano.io",
allow_cookies: 1,
block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/,
excluded_domains: ["piano.io", "asia.nikkei.com", "businessinsider.com.pl", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"]
excluded_domains: ["piano.io", "asia.nikkei.com", "businessinsider.com.pl", "hbr.org", "japantimes.co.jp", "nacion.com", "onet.pl"]
},
"Pico.tools": {
domain: "pico.tools",

View file

@ -64,6 +64,13 @@
"cs_code": "[{\"cond\":\"div.ft-helper-closenews\", \"rm_attrib\":\"class\"}]",
"upd_version": "3.5.4.1"
},
"Kurier.at": {
"domain": "kurier.at",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"cs_code": "[{\"cond\":\"div#cfs-paywall-container\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.paywall\", \"rm_attrib\":\"class|style\"}]}]",
"upd_version": "3.5.5.2"
},
"National Geographic USA": {
"domain": "nationalgeographic.com",
"allow_cookies": 1,