pre-filter URL's for so we don't try to run isolator checks on domains that have no chance of needing isolation
This commit is contained in:
8
Makefile
8
Makefile
@@ -351,3 +351,11 @@ test:
|
||||
-u http://127.0.0.1:7657/i2psnark \
|
||||
-u http://127.0.0.1:7657/webmail \
|
||||
-u http://idk.i2p
|
||||
|
||||
lht-test:
|
||||
web-ext run -u about:debugging \
|
||||
-u http://localhost:7657/home \
|
||||
-u http://localhost:7657/i2ptunnel \
|
||||
-u http://localhost:7657/i2psnark \
|
||||
-u http://localhost:7657/webmail \
|
||||
-u http://idk.i2p
|
||||
|
||||
10
scrub.js
10
scrub.js
@@ -949,14 +949,12 @@ browser.webNavigation.onCompleted.addListener(getClearTab, filter);
|
||||
|
||||
window.setInterval(getClearTab, 2000);
|
||||
|
||||
browser.webRequest.onBeforeRequest.addListener(
|
||||
contextSetup,
|
||||
{ urls: ["<all_urls>"] },
|
||||
//["blocking"]
|
||||
);
|
||||
browser.webRequest.onBeforeRequest.addListener(contextSetup, {
|
||||
urls: ["*://*.i2p/*", "*://localhost/*", "*://127.0.0.1/*", "*://*/*i2p*"],
|
||||
});
|
||||
|
||||
browser.webRequest.onBeforeSendHeaders.addListener(
|
||||
contextScrub,
|
||||
{ urls: ["<all_urls>"] },
|
||||
{ urls: ["*://*.i2p/*"] },
|
||||
["requestHeaders"]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user