mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-30 01:24:26 +02:00
Fix foreignpolicy.com
This commit is contained in:
parent
ccafc3d5b6
commit
167d1420d3
@ -71,7 +71,8 @@
|
|||||||
"*://*.sueddeutsche.de/*",
|
"*://*.sueddeutsche.de/*",
|
||||||
"*://*.elmundo.es/*",
|
"*://*.elmundo.es/*",
|
||||||
"*://*.time.com/*",
|
"*://*.time.com/*",
|
||||||
"*://*.expansion.com/*"
|
"*://*.expansion.com/*",
|
||||||
|
"*://*.foreignpolicy.com/*"
|
||||||
],
|
],
|
||||||
"js": ["src/js/contentScript.js"]
|
"js": ["src/js/contentScript.js"]
|
||||||
}
|
}
|
||||||
|
@ -209,7 +209,7 @@ const blockedRegexes = {
|
|||||||
'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\//,
|
'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\//,
|
||||||
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/engassets\/_next\/static\/chunks\/framework.+\.js)/,
|
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/engassets\/_next\/static\/chunks\/framework.+\.js)/,
|
||||||
'editorialedomani.it': /(js\.pelcro\.com\/.+|editorialedomani.it\/pelcro\.js)/,
|
'editorialedomani.it': /(js\.pelcro\.com\/.+|editorialedomani.it\/pelcro\.js)/,
|
||||||
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
|
'foreignpolicy.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/,
|
||||||
'fortune.com': /.+\.tinypass\.com\/.+/,
|
'fortune.com': /.+\.tinypass\.com\/.+/,
|
||||||
'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/,
|
'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/,
|
||||||
'haaretz.com': /haaretz\.com\/hdc\/web\/js\/minified\/header-scripts-int.js.+/,
|
'haaretz.com': /haaretz\.com\/hdc\/web\/js\/minified\/header-scripts-int.js.+/,
|
||||||
|
@ -649,11 +649,18 @@ if (matchDomain('elmercurio.com')) {
|
|||||||
if (paywall) {
|
if (paywall) {
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
} else if (incognitoWall) {
|
} else if (incognitoWall) {
|
||||||
removeDOMElement(incognitoWall);
|
removeDOMElement(incognitoWall);
|
||||||
}
|
}
|
||||||
if (paywall || incognitoWall) {
|
if (paywall || incognitoWall) {
|
||||||
document.body.removeAttribute('style');
|
document.body.removeAttribute('style');
|
||||||
}
|
}
|
||||||
|
} else if (matchDomain('foreignpolicy.com')) {
|
||||||
|
const contentUngated = document.querySelector('div.content-ungated');
|
||||||
|
removeDOMElement(contentUngated);
|
||||||
|
const contentGated = document.querySelector('div.content-gated');
|
||||||
|
if (contentGated) {
|
||||||
|
contentGated.classList.remove('content-gated');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function matchDomain (domains) {
|
function matchDomain (domains) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user