Compare commits

...

2 Commits

Author SHA1 Message Date
magnolia1234 70c76e7167 Fix The Economist (regwall) 2 months ago
magnolia1234 869c10940c Update custom sites (block_regex_ignore_default) 2 months ago

@ -429,7 +429,7 @@ function set_rules(sites, sites_updated, sites_custom) {
rule = {};
for (let key in sites_custom[customSite_title])
rule[key] = sites_custom[customSite_title][key];
if (block_regex_default) {
if (block_regex_default && !rule.block_regex_ignore_default) {
if (rule.hasOwnProperty('block_regex')) {
if (block_regex_default instanceof RegExp)
block_regex_default = block_regex_default.source;

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

@ -4231,11 +4231,15 @@ else if (matchDomain('economictimes.indiatimes.com')) {
}
else if (matchDomain('economist.com')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
let noscroll = document.querySelector('svelte-scroller-outer');
let hide_style = document.querySelector('body > style');
removeDOMElement(paywall, noscroll, hide_style);
if (window.location.pathname.startsWith('/interactive/')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
let hide_style = document.querySelector('body > 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__"]';
hideDOMStyle(ads);

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

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

@ -281,6 +281,7 @@ function edit_options() {
document.querySelector('input[data-key="block_js_ext"]').checked = (edit_site.block_js_ext > 0 || edit_site.block_javascript_ext > 0);
document.querySelector('input[data-key="block_js_inline"]').value = edit_site.block_js_inline || '';
document.querySelector('input[data-key="block_regex"]').value = edit_site.block_regex || '';
document.querySelector('input[data-key="block_regex_ignore_default"]').checked = (edit_site.block_regex_ignore_default > 0 || edit_site.block_regex_ignore_default > 0);
document.querySelector('input[data-key="block_host_perm_add"]').value = edit_site.block_host_perm_add || '';
document.querySelector('input[data-key="amp_unhide"]').checked = (edit_site.amp_unhide > 0);
document.querySelector('input[data-key="amp_redirect"]').value = edit_site.amp_redirect || '';
@ -364,7 +365,8 @@ function renderOptions() {
'block_js (domain)': 1,
'block_js_ext': 1,
'block_js_inline': 0,
'block_regex': 0,
'block_regex (add to default)': 0,
'block_regex_ignore_default': 1,
'block_host_perm_add': 0,
'amp_unhide': 1,
'amp_redirect': 0,

@ -2499,7 +2499,8 @@ var defaultSites = {
"The Economist": {
domain: "economist.com",
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)": {
domain: "###_usa_epochtimes",

@ -102,6 +102,13 @@
"nofix": 1,
"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": {
"domain": "themandarin.com.au",
"allow_cookies": 1,

Loading…
Cancel
Save