mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:21:58 +01:00
Fix clearCookies (Chrome .domain cookies)
This commit is contained in:
parent
8bdd8e1634
commit
fc46a96dbb
7 changed files with 10 additions and 11 deletions
|
@ -841,7 +841,7 @@ function site_switch() {
|
|||
let customSite_title = isCustomSite ? Object.keys(customSites).find(key => customSites[key].domain === isCustomSite) : '';
|
||||
let site_title = defaultSite_title || customSite_title;
|
||||
let domain = isDefaultSite || isCustomSite;
|
||||
if (domain) {
|
||||
if (domain && site_title) {
|
||||
let added_site = [];
|
||||
let removed_site = [];
|
||||
if (enabledSites.includes(domain))
|
||||
|
@ -877,8 +877,7 @@ ext_api.webRequest.onCompleted.addListener(function (details) {
|
|||
domain: domainVar
|
||||
}, function (cookies) {
|
||||
for (let cookie of cookies) {
|
||||
var cookie_domain = cookie.domain;
|
||||
var rc_domain = cookie_domain.replace(/^(\.?www\.|\.)/, '');
|
||||
var rc_domain = cookie.domain.replace(/^(\.?www\.|\.)/, '');
|
||||
// hold specific cookie(s) from remove_cookies domains
|
||||
if ((rc_domain in remove_cookies_select_hold) && remove_cookies_select_hold[rc_domain].includes(cookie.name)) {
|
||||
continue; // don't remove specific cookie
|
||||
|
@ -938,7 +937,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
|||
domain: domainVar
|
||||
}, function (cookies) {
|
||||
for (let cookie of cookies) {
|
||||
var cookie_domain = cookie.domain;
|
||||
cookie.domain = cookie.domain.replace(/^\./, '');
|
||||
ext_api.cookies.remove({
|
||||
url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path,
|
||||
name: cookie.name
|
||||
|
|
|
@ -6,6 +6,7 @@ Fix-update Australian Provincial Newspapers
|
|||
Fix-update Haaretz/TheMarker (Bingbot)
|
||||
Fix-update Telegraph.co.uk (overlay)
|
||||
Fix Chrome-icon for dark/incognito mode (all permitted sites)
|
||||
Fix clearCookies (Chrome .domain cookies)
|
||||
Fix updateBadge (grouped sites)
|
||||
|
||||
* v1.9.3.0 (2020-11-01)
|
||||
|
@ -13,6 +14,7 @@ Add Deutsche Wirtschafts Nachrichten
|
|||
Add WirtschaftsWoche (Germany)
|
||||
Fix-update Quartz (newsletter)
|
||||
Fix-update Sueddeutsche Zeitung (+ magazine)
|
||||
Fix-update WSJ (restore Googlebot)
|
||||
Fix updateBadge (custom sites disabled)
|
||||
Icon for dark/incognito mode (Chrome)
|
||||
Save options to storage.local (quota exceeded)
|
||||
|
|
|
@ -339,5 +339,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.3.3"
|
||||
"version": "1.9.3.4"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
html, body {
|
||||
width: 20em;
|
||||
font-size: 100%;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<p>
|
||||
<div style='float:right'>
|
||||
<div style='float:left'>
|
||||
<small><button><a href="../options.html" style="text-decoration:none;color:inherit">Options</a></button></small>
|
||||
<small><button><a href="../options_custom.html" style="text-decoration:none;color:inherit">Custom sites</a></button></small>
|
||||
<small><button id="button-close">Close</button></small>
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
display: block;
|
||||
}
|
||||
body {
|
||||
width:350px;
|
||||
height:600px;
|
||||
font-size: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
display: block;
|
||||
}
|
||||
body {
|
||||
width:350px;
|
||||
height:600px;
|
||||
font-size: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue