mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Fix Handelsblatt (no amp)
This commit is contained in:
parent
43f7a94199
commit
5da2219e84
6 changed files with 9 additions and 7 deletions
|
@ -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=).)*$/,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -605,5 +605,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://*.zephr.com/*"
|
||||
],
|
||||
"version": "2.5.0.0"
|
||||
"version": "2.5.0.1"
|
||||
}
|
||||
|
|
2
sites.js
2
sites.js
|
@ -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
|
||||
},
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"allow_cookies": 1,
|
||||
"block_regex": "\\.qiota\\.com\\/"
|
||||
},
|
||||
"Science": {
|
||||
"Science (free articles only)": {
|
||||
"domain": "science.org",
|
||||
"allow_cookies": 1,
|
||||
"cs_code": [{
|
||||
|
|
Loading…
Reference in a new issue