|
|
|
@ -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>"]
|
|
|
|
|
});
|
|
|
|
|