Fix Handelsblatt (no amp)

This commit is contained in:
magnolia1234 2022-01-04 21:57:52 +01:00
parent 43f7a94199
commit 5da2219e84
6 changed files with 9 additions and 7 deletions

View file

@ -27,6 +27,7 @@ const restrictions = {
'ft.com': /.+\.ft\.com\/content\//,
'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/,
'medianama.com': /\.medianama\.com\/((\d){4}\/(\d){2}|wp-content)\//,
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
'timesofindia.com': /.+\.timesofindia\.com\/($|toi-plus(\/.+)?|.+\.cms)/,
'nknews.org': /^((?!nknews\.org\/pro\/).)*$/,
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Handelsblatt (no amp)
* v2.5.0.0 (2022-01-02)
Add Capital Gazette (local USA)

View file

@ -520,13 +520,13 @@ else if (matchDomain('handelsblatt.com')) {
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');
removeDOMElement(...amp_ads);
} else {
let paywall = document.querySelector('div.temp-paywall2');
let paywall = document.querySelector('div.temp-paywall1');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (!amphtml)
amphtml = {href: url.replace(/\/(www|app)\./, '/amp2.')};
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
let premium = document.querySelector('meta[content*="PREMIUM"]');
if (!premium)
window.location.href = amphtml.href;
}
}
}

View file

@ -605,5 +605,5 @@
"*://*.wsj.net/*",
"*://*.zephr.com/*"
],
"version": "2.5.0.0"
"version": "2.5.0.1"
}

View file

@ -1288,7 +1288,7 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/
},
"Science": {
"Science (free articles only)": {
domain: "science.org",
allow_cookies: 1
},

View file

@ -38,7 +38,7 @@
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com\\/"
},
"Science": {
"Science (free articles only)": {
"domain": "science.org",
"allow_cookies": 1,
"cs_code": [{