mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Add Discover Magazine
This commit is contained in:
parent
2a858d9c14
commit
6e12ce527f
@ -55,6 +55,7 @@ Install add-on by downloading xpi-file.
|
||||
##### 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)) {
|
||||
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})) {
|
||||
|
@ -234,6 +234,7 @@
|
||||
"*://*.ampproject.org/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.ctfassets.net/*",
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.epimg.net/*",
|
||||
"*://*.flip-pay.com/*",
|
||||
|
Loading…
Reference in New Issue
Block a user