Add Discover Magazine
parent
2ae312fc97
commit
99a3338f0a
|
@ -84,6 +84,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
|||
##### Tech/Science
|
||||
[Chemical & Engineering News](https://cen.acs.org) -
|
||||
[Dark Reading](https://www.darkreading.com) -
|
||||
[Discover Magazine](https://www.discovermagazine.com) -
|
||||
[MIT Technology Review](https://www.technologyreview.com) -
|
||||
[Towards Data Science](https://www.towardsdatascience.com) -
|
||||
[Wired](https://www.wired.com) -
|
||||
|
|
|
@ -381,6 +381,15 @@ 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)
|
||||
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\?)/) && isSiteEnabled({url: header_referer})) {
|
||||
|
|
|
@ -222,6 +222,7 @@
|
|||
"*://*.ampproject.org/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.ctfassets.net/*",
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.epimg.net/*",
|
||||
"*://*.flip-pay.com/*",
|
||||
|
|
Loading…
Reference in New Issue