Add Discover Magazine
parent
2ae312fc97
commit
99a3338f0a
|
@ -84,6 +84,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
||||||
##### Tech/Science
|
##### Tech/Science
|
||||||
[Chemical & Engineering News](https://cen.acs.org) -
|
[Chemical & Engineering News](https://cen.acs.org) -
|
||||||
[Dark Reading](https://www.darkreading.com) -
|
[Dark Reading](https://www.darkreading.com) -
|
||||||
|
[Discover Magazine](https://www.discovermagazine.com) -
|
||||||
[MIT Technology Review](https://www.technologyreview.com) -
|
[MIT Technology Review](https://www.technologyreview.com) -
|
||||||
[Towards Data Science](https://www.towardsdatascience.com) -
|
[Towards Data Science](https://www.towardsdatascience.com) -
|
||||||
[Wired](https://www.wired.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)
|
// 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\?)/) && isSiteEnabled({url: 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/*",
|
"*://*.ampproject.org/*",
|
||||||
"*://*.cedsdigital.it/*",
|
"*://*.cedsdigital.it/*",
|
||||||
"*://*.corriereobjects.it/*",
|
"*://*.corriereobjects.it/*",
|
||||||
|
"*://*.ctfassets.net/*",
|
||||||
"*://*.emol.cl/*",
|
"*://*.emol.cl/*",
|
||||||
"*://*.epimg.net/*",
|
"*://*.epimg.net/*",
|
||||||
"*://*.flip-pay.com/*",
|
"*://*.flip-pay.com/*",
|
||||||
|
|
1
sites.js
1
sites.js
|
@ -30,6 +30,7 @@ var defaultSites =
|
||||||
"De Tijd": "tijd.be",
|
"De Tijd": "tijd.be",
|
||||||
"DeMorgen": "demorgen.be",
|
"DeMorgen": "demorgen.be",
|
||||||
"Digiday": "digiday.com",
|
"Digiday": "digiday.com",
|
||||||
|
"Discover Magazine": "discovermagazine.com",
|
||||||
"El Comercio": "elcomercio.pe",
|
"El Comercio": "elcomercio.pe",
|
||||||
"El Mercurio": "elmercurio.com",
|
"El Mercurio": "elmercurio.com",
|
||||||
"El Mundo": "elmundo.es",
|
"El Mundo": "elmundo.es",
|
||||||
|
|
Loading…
Reference in New Issue