Disabled cookies for incognito for this release #291 #340

This commit is contained in:
ManeraKai 2022-06-19 18:49:42 +03:00
parent 8b7581e4e2
commit f6861164a3
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
4 changed files with 4 additions and 15 deletions

View File

@ -371,6 +371,7 @@ function unify(test) {
let url;
try { url = new URL(currTab.url); }
catch { resolve(); return; }
if (currTab.incognito) { resolve(); return; }
let result = await youtubeHelper.copyPasteInvidiousCookies(test, url);
if (!result) result = await youtubeHelper.copyPastePipedLocalStorage(test, url, currTab.id);

View File

@ -147,20 +147,8 @@ browser.webRequest.onBeforeRequest.addListener(
["blocking"]
);
let incognitoList = [];
browser.tabs.onCreated.addListener(
tab => {
if (tab.incognito) {
incognitoList.push(tab.id);
if (incognitoList.length == 1) browser.tabs.create({ url: browser.runtime.getURL("/pages/background/incognito.html"), active: false });
}
}
);
browser.tabs.onRemoved.addListener(
tabId => {
incognitoList.pop(tabId)
const i = BYPASSTABs.indexOf(tabId);
if (i > -1) {
BYPASSTABs.splice(i, 1);

View File

@ -71,7 +71,7 @@
</select>
</div>
<div class="some-block option-block">
<h4>First-party isolation (Enable for Tor)</h4>
<h4>Tor Browser</h4>
<input id="firstPartyIsolate" type="checkbox">
</div>
<div class="some-block option-block">

View File

@ -10,8 +10,8 @@ section#general_page.option-block
option(value="light" data-localise="__MSG_light__") Light
option(value="dark" data-localise="__MSG_dark__") Dark
.some-block.option-block
h4() First-party isolation (Enable for Tor)
//- .some-block.option-block
h4 Tor Browser
input#firstPartyIsolate(type="checkbox")
.some-block.option-block