diff --git a/Makefile b/Makefile index ca9f0f0..8ed8e9f 100644 --- a/Makefile +++ b/Makefile @@ -232,7 +232,7 @@ fmt: find . -path ./node_modules -prune -o -name '*.json' -exec prettier --write {} \; lint: - eslint --fix --color *.js + eslint --color *.js deborig: fmt version rm -rf ../i2psetproxy.js-$(VERSION) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index a60ed4b..aede559 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -65,51 +65,51 @@ }, "windowVisitI2ptunnel": { "message": "Hidden Services Manager: ", - "description": "" + "description": "Title for i2ptunnel" }, "i2ptunnel": { "message": "I2P has a web-based interface for configuring .i2p services like web sites which you can set up.", - "description": "" + "description": "Description for i2ptunnel" }, "windowVisitSusimail": { "message": "E-Mail: ", - "description": "" + "description": "Title for e-mail" }, "susimail": { "message": "I2P also bundles a webmail client which can be used to access in-I2P e-mail.", - "description": "" + "description": "Description for e-mail" }, "windowVisitSnark": { "message": "Bittorrent: ", - "description": "" + "description": "Title for Bittorrent" }, "snark": { "message": "I2P is capable of anonymous Peer-to-Peer file sharing using the built-in bittorrent application.", - "description": "" + "description": "Description for Bittorrent" }, "windowVisitSources": { "message": "Extension Source Code: ", - "description": "" + "description": "Title for source code link" }, "sources": { "message": "Browse the source code here", - "description": "" + "description": "Description for the Source code link" }, "windowVisitWebPage": { "message": "Extension Home Page: ", - "description": "" + "description": "Visit extension homepage on Github" }, "homepage": { "message": "More information is available here", - "description": "" + "description": "Find more information" }, "windowVisitReleases": { "message": "Extension Releases: ", - "description": "" + "description": "Visit the release page" }, "releases": { "message": "Check for new releases here", - "description": "" + "description": "Description for new release page" }, "titlePreface": { "message": "I2P Browser", diff --git a/content.js b/content.js index 00ee2ee..906a230 100644 --- a/content.js +++ b/content.js @@ -2,8 +2,7 @@ function contentUpdateById(id, message) { let infoTitle = document.getElementById(id); let messageContent = chrome.i18n.getMessage(message); if (infoTitle === null) { - console.log("content error", id, message); - console.log("content error", messageContent); + console.log("content error", id, messageContent); return; } infoTitle.textContent = messageContent; @@ -37,29 +36,10 @@ contentUpdateById("susimail", "susimail"); contentUpdateById("window-visit-snark", "windowVisitSnark"); contentUpdateById("snark", "snark"); +// Homepage Section contentUpdateById("window-visit-webpage", "windowVisitWebPage"); contentUpdateById("webpage", "webpage"); contentUpdateById("window-visit-sources", "windowVisitSources"); contentUpdateById("sources", "sources"); contentUpdateById("window-visit-releases", "windowVisitReleases"); contentUpdateById("releases", "releases"); - -/* -document.addEventListener("click", e => { - browser.runtime.sendMessage({ url: "http://proxy.i2p" }); -}); - -function proxyContent(message) { - var proxyData = document.getElementById("proxy-health"); - proxyData.textContent = message; - console.log("Event occurred", message); -} - -browser.runtime.onMessage.addListener(proxyContent); -*/ - -/* -function signalWebRTC(val){ - console.log("signal", val) -} -*/ diff --git a/context.js b/context.js index d5a70e6..2fd7a15 100644 --- a/context.js +++ b/context.js @@ -33,10 +33,7 @@ function eventHandler(event) { } function createOptions(node, identity) { - for (let option of [ -"Create", -"Close All" -]) { + for (let option of ["Create", "Close All"]) { let alink = document.createElement("a"); alink.href = "#"; alink.innerText = option; diff --git a/home.html b/home.html index 8fe3954..3178448 100644 --- a/home.html +++ b/home.html @@ -9,6 +9,7 @@ +
@@ -88,7 +89,6 @@
- diff --git a/privacy.js b/privacy.js index c7f6ca8..29d0d59 100644 --- a/privacy.js +++ b/privacy.js @@ -199,13 +199,7 @@ function EnableSavePasswords() { var defaultSettings = { since: "forever", - dataTypes: [ -"downloads", -"passwords", -"formData", -"localStorage", -"history" -] + dataTypes: ["downloads", "passwords", "formData", "localStorage", "history"] }; function onError(therror) { diff --git a/proxy.js b/proxy.js index 7a8e1fb..3b8f5ea 100644 --- a/proxy.js +++ b/proxy.js @@ -117,8 +117,11 @@ var handleContextProxyRequest = async function(requestDetails) { console.log("(proxy)Tab error", error); } }; - if (requestDetails.cookieStoreId == "firefox-default" || requestDetails.cookieStoreId == "firefox-private" ){ - return browser.proxy.settings.get({}); + if ( + requestDetails.cookieStoreId == "firefox-default" || + requestDetails.cookieStoreId == "firefox-private" + ) { + return browser.proxy.settings.get({}); } if (requestDetails.tabId > 0) { console.log("manifest", requestDetails); diff --git a/scrub.js b/scrub.js index 33f6282..7bd47b3 100644 --- a/scrub.js +++ b/scrub.js @@ -421,8 +421,5 @@ browser.webRequest.onBeforeRequest.addListener( browser.webRequest.onBeforeSendHeaders.addListener( contextScrub, { urls: [""] }, - [ -"blocking", -"requestHeaders" -] + ["blocking", "requestHeaders"] );