Fix Nikkei Asian Review (cookies)

master
magnolia1234 2021-07-22 17:09:17 +02:00
parent 4acd7dfa67
commit 29d4dd7bb1
4 changed files with 5 additions and 3 deletions

View File

@ -1440,8 +1440,9 @@ function remove_cookies_fn(domainVar, exclusions = false) {
// remove cookies after page load
ext_api.webRequest.onCompleted.addListener(function (details) {
let domainVar = matchUrlDomain(remove_cookies, details.url);
if (domainVar && ['main_frame', 'sub_frame', 'xmlhttprequest', 'other'].includes(details.type) && enabledSites.includes(domainVar))
if (domainVar && !['font', 'stylesheet'].includes(details.type) && enabledSites.includes(domainVar)) {
remove_cookies_fn(domainVar, true);
}
}, {
urls: ["<all_urls>"]
});

View File

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Add Southern Weekly (China)
Fix Bloomberg
Fix Nikkei Asian Review (cookies)
Fix The Daily Telegraph (au)
* v2.2.9.0 (2021-07-11)

View File

@ -38,5 +38,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.2.9.3"
"version": "2.2.9.4"
}

View File

@ -523,5 +523,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.9.3"
"version": "2.2.9.4"
}