mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:17:47 +01:00
Fix-update Discover Magazine
This commit is contained in:
parent
383943cb73
commit
ec7103ec27
4 changed files with 10 additions and 13 deletions
|
@ -678,16 +678,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove cookies Discover Magazine
|
|
||||||
if (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'})) {
|
|
||||||
ext_api.cookies.getAll({domain: 'discovermagazine.com'}, function(cookies) {
|
|
||||||
for (let cookie of cookies) {
|
|
||||||
ext_api.cookies.remove({url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// block external javascript for custom sites (optional)
|
// block external javascript for custom sites (optional)
|
||||||
var domain_blockjs_ext = matchUrlDomain(block_js_custom_ext, header_referer);
|
var domain_blockjs_ext = matchUrlDomain(block_js_custom_ext, header_referer);
|
||||||
if (domain_blockjs_ext && !matchUrlDomain(domain_blockjs_ext, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/) && isSiteEnabled({url: header_referer})) {
|
if (domain_blockjs_ext && !matchUrlDomain(domain_blockjs_ext, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/) && isSiteEnabled({url: header_referer})) {
|
||||||
|
|
|
@ -7,6 +7,7 @@ Add Esprit (France)
|
||||||
Add The Spectator USA
|
Add The Spectator USA
|
||||||
Remove Aftonbladet.se (obsolete)
|
Remove Aftonbladet.se (obsolete)
|
||||||
Fix-update CharlieHebdo.fr (captcha)
|
Fix-update CharlieHebdo.fr (captcha)
|
||||||
|
Fix-update Discover Magazine
|
||||||
Fix-update El Mercurio & La Segunda (mobile)
|
Fix-update El Mercurio & La Segunda (mobile)
|
||||||
Fix-update Harper's Magazine
|
Fix-update Harper's Magazine
|
||||||
Fix-update Mexico News Daily
|
Fix-update Mexico News Daily
|
||||||
|
|
|
@ -1296,8 +1296,13 @@ else if (matchDomain(["mercuriovalpo.cl", "estrellavalpo.cl"])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain("discovermagazine.com")) {
|
else if (matchDomain("discovermagazine.com")) {
|
||||||
let banner = document.querySelector('div.hWOjDZ, div.qa7yll-1');
|
window.setTimeout(function () {
|
||||||
removeDOMElement(banner);
|
let mammoth = document.querySelector('.iXVGnF');
|
||||||
|
if (mammoth)
|
||||||
|
window.location.reload();
|
||||||
|
let banner = document.querySelector('div.hWOjDZ, div.qa7yll-1');
|
||||||
|
removeDOMElement(banner);
|
||||||
|
}, 1000); // Delay (in milliseconds)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (domain = matchDomain(["fresnobee.com", "sacbee.com"])) {
|
else if (domain = matchDomain(["fresnobee.com", "sacbee.com"])) {
|
||||||
|
|
|
@ -102,6 +102,7 @@
|
||||||
"*://*.diariosur.es/*",
|
"*://*.diariosur.es/*",
|
||||||
"*://*.diariovasco.com/*",
|
"*://*.diariovasco.com/*",
|
||||||
"*://*.digiday.com/*",
|
"*://*.digiday.com/*",
|
||||||
|
"*://*.discovermagazine.com/*",
|
||||||
"*://*.dn.se/*",
|
"*://*.dn.se/*",
|
||||||
"*://*.dvhn.nl/*",
|
"*://*.dvhn.nl/*",
|
||||||
"*://*.economist.com/*",
|
"*://*.economist.com/*",
|
||||||
|
@ -355,7 +356,6 @@
|
||||||
"*://*.bwbx.io/*",
|
"*://*.bwbx.io/*",
|
||||||
"*://*.cedsdigital.it/*",
|
"*://*.cedsdigital.it/*",
|
||||||
"*://*.corriereobjects.it/*",
|
"*://*.corriereobjects.it/*",
|
||||||
"*://*.ctfassets.net/*",
|
|
||||||
"*://*.cxense.com/*",
|
"*://*.cxense.com/*",
|
||||||
"*://*.emol.cl/*",
|
"*://*.emol.cl/*",
|
||||||
"*://*.epimg.net/*",
|
"*://*.epimg.net/*",
|
||||||
|
|
Loading…
Reference in a new issue