Fix The Economist (regwall)

master
magnolia1234 2 months ago
parent 869c10940c
commit 70c76e7167

@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release Post-release
Add OVB Media (opt-in to custom sites for unlisted) Add OVB Media (opt-in to custom sites for unlisted)
Add Private Media AU Add Private Media AU
Fix The Economist (regwall)
Update custom sites (block_regex_ignore_default) Update custom sites (block_regex_ignore_default)
* v3.6.3.0 (2024-04-07) * v3.6.3.0 (2024-04-07)

@ -4231,11 +4231,15 @@ else if (matchDomain('economictimes.indiatimes.com')) {
} }
else if (matchDomain('economist.com')) { else if (matchDomain('economist.com')) {
let paywall = document.querySelector('div.paywall'); if (window.location.pathname.startsWith('/interactive/')) {
if (paywall) { let paywall = document.querySelector('div.paywall');
let noscroll = document.querySelector('svelte-scroller-outer'); if (paywall) {
let hide_style = document.querySelector('body > style'); let hide_style = document.querySelector('body > style');
removeDOMElement(paywall, noscroll, hide_style); removeDOMElement(paywall, hide_style);
}
} else {
let url = window.location.href;
getGoogleWebcache(url, 'div#tp-regwall', '', 'section[data-body-id]');
} }
let ads = 'div[class*="_advert__"]'; let ads = 'div[class*="_advert__"]';
hideDOMStyle(ads); hideDOMStyle(ads);

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.6.3.2" "version": "3.6.3.3"
} }

@ -876,5 +876,5 @@
"*://archive.vn/*", "*://archive.vn/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.6.3.2" "version": "3.6.3.3"
} }

@ -2499,7 +2499,8 @@ var defaultSites = {
"The Economist": { "The Economist": {
domain: "economist.com", domain: "economist.com",
allow_cookies: 1, allow_cookies: 1,
block_regex: /\.tinypass\.com\// block_regex: /\.tinypass\.com\//,
cs_dompurify: 1
}, },
"The Epoch Times (+ cz|de|fr|jp|ro; opt-in to custom sites)": { "The Epoch Times (+ cz|de|fr|jp|ro; opt-in to custom sites)": {
domain: "###_usa_epochtimes", domain: "###_usa_epochtimes",

@ -102,6 +102,13 @@
"nofix": 1, "nofix": 1,
"upd_version": "3.6.1.6" "upd_version": "3.6.1.6"
}, },
"The Economist": {
"domain": "economist.com",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com",
"ld_google_webcache": "div#tp-regwall|section[data-body-id]",
"upd_version": "3.6.3.3"
},
"Themandarin.com.au": { "Themandarin.com.au": {
"domain": "themandarin.com.au", "domain": "themandarin.com.au",
"allow_cookies": 1, "allow_cookies": 1,

Loading…
Cancel
Save