parent
8b7581e4e2
commit
f6861164a3
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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">
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user