diff --git a/scrub.js b/scrub.js index ec9c9a2..da07f00 100644 --- a/scrub.js +++ b/scrub.js @@ -705,6 +705,14 @@ var coolheadersSetup = function (e) { function getTabURL(tab) { if (tab.url.startsWith("https")) { + browser.pageAction.setPopup({ + tabId: tab.id, + popup: "security.html", + }); + browser.pageAction.setIcon({ + path: "icons/infotoopies.png", + tabId: tab.id, + }); console.log(tab.url); if (tab.url.includes(".i2p")) { @@ -733,15 +741,6 @@ function getTabURL(tab) { }); browser.pageAction.show(tab.id); } - }else{ - browser.pageAction.setPopup({ - tabId: tab.id, - popup: "security.html", - }); - browser.pageAction.setIcon({ - path: "icons/infotoopies.png", - tabId: tab.id, - }); } }); console.log("(pageaction)", tab.id, tab.url); @@ -781,6 +780,17 @@ function getTabURL(tab) { } } } else { + if (tab.url.includes(".i2p")) { + browser.pageAction.setPopup({ + tabId: tab.id, + popup: "security.html", + }); + browser.pageAction.setIcon({ + path: "icons/infotoopie.png", + tabId: tab.id, + }); + console.log(tab.url); + } try { browser.tabs .sendMessage(tab.id, { req: "i2p-torrentlocation" }) diff --git a/sectorrent.html b/sectorrent.html new file mode 100644 index 0000000..2e5bfae --- /dev/null +++ b/sectorrent.html @@ -0,0 +1,70 @@ + + + + + + + + + + + +
+
+
+
+

I2P Site Properties | This I2P Site has peer-to-peer resources.

+
+
+
+ +
+ +
+
+

+ To help distribute the site content, use the links below to join the swarm. +

+ +
+
+ + + +