diff --git a/README.md b/README.md index 0054baa..96bd02d 100644 --- a/README.md +++ b/README.md @@ -101,9 +101,14 @@ Usage: can. * ![Visiting i2psnark](i2psnark.png) * ![Monitoring torrents](transmissionrpc.png) - * [Started] Indicate the level of authenticity provided by TLS. TLS is + * [Started] **Indicate** the level of authenticity provided by TLS. TLS is optional on I2P for now, but some sites offer it anyway. TLS support is experimental and in the works. + * [Started] **Provide** alternate, in-I2P destinations for web sites that want to + mirror their content within I2P. + * [Started] **Enhance** the I2P browsing experience by allowing site developers + distribute some or all of their resources as torrents, allowing the torrents to + be treated effectively as a CDN. * [barely started] **Isolate** traffic by contextual identity to it's own HTTP Proxy tunnel, each reflecting it's own pseudonymous identity within I2P. The contextual identities. For now, the contextual identities used to manage diff --git a/background.js b/background.js index 308bd27..7c00bc5 100644 --- a/background.js +++ b/background.js @@ -180,15 +180,15 @@ function themeWindow(window) { if (window.incognito) { browser.theme.update(window.id, { colors: { - frame: '#FFC56D', - toolbar: '#FFC56D' + frame: '#363A68', + toolbar: '#363A68' } }); } else { browser.theme.update(window.id, { colors: { - frame: '#FFC56D', - toolbar: '#FFC56D' + frame: '#363A68', + toolbar: '#363A68' } }); } @@ -203,15 +203,15 @@ function themeWindow(window) { if (window.incognito) { browser.theme.update(window.id, { colors: { - frame: '#A4C8E1', - toolbar: '#A4C8E1' + frame: '#4456B7', + toolbar: '#4456B7' } }); } else { browser.theme.update(window.id, { colors: { - frame: '#A4C8E1', - toolbar: '#A4C8E1' + frame: '#4456B7', + toolbar: '#4456B7' } }); } @@ -220,15 +220,15 @@ function themeWindow(window) { if (window.incognito) { browser.theme.update(window.id, { colors: { - frame: '#D9D9D6', - toolbar: '#D9D9D6' + frame: '#4456B7', + toolbar: '#4456B7' } }); } else { browser.theme.update(window.id, { colors: { - frame: '#D9D9D6', - toolbar: '#D9D9D6' + frame: '#4456B7', + toolbar: '#4456B7' } }); } @@ -237,15 +237,15 @@ function themeWindow(window) { if (window.incognito) { browser.theme.update(window.id, { colors: { - frame: '#F7E59A', - toolbar: '#F7E59A' + frame: '#4456B7', + toolbar: '#4456B7' } }); } else { browser.theme.update(window.id, { colors: { - frame: '#F7E59A', - toolbar: '#F7E59A' + frame: '#4456B7', + toolbar: '#4456B7' } }); } @@ -254,15 +254,15 @@ function themeWindow(window) { if (window.incognito) { browser.theme.update(window.id, { colors: { - frame: '#A48FE1', - toolbar: '#A48FE1' + frame: '#4456B7', + toolbar: '#4456B7' } }); } else { browser.theme.update(window.id, { colors: { - frame: '#A48FE1', - toolbar: '#A48FE1' + frame: '#4456B7', + toolbar: '#4456B7' } }); } diff --git a/info.js b/info.js index 2a67791..48d91ed 100644 --- a/info.js +++ b/info.js @@ -158,8 +158,12 @@ document.addEventListener("click", clickEvent => { }); window.onload = function(e){ - document.getElementById("label-peers-list").style.display = "none" - document.getElementById("label-bandwidth-list").style.display = "none" + if (document.getElementById("label-peers-list") != null) { + document.getElementById("label-peers-list").style.display = "none" + } + if (document.getElementById("label-bandwidth-list") != null) { + document.getElementById("label-bandwidth-list").style.display = "none" + } } function proxyReadiness() { diff --git a/privacy.js b/privacy.js index d96b718..d842b63 100644 --- a/privacy.js +++ b/privacy.js @@ -166,7 +166,7 @@ function AssurePeerConnection() { value: false }); chrome.privacy.network.webRTCIPHandlingPolicy.set({ - value: "proxy_only" + value: "disable_non_proxied_udp" }); } let rtc = browser.privacy.network.peerConnectionEnabled.get({}); diff --git a/proxy.js b/proxy.js index df02ec0..e03572a 100644 --- a/proxy.js +++ b/proxy.js @@ -4,16 +4,16 @@ var routerpref = chrome.i18n.getMessage('routerPreface'); var routerprefpriv = chrome.i18n.getMessage('routerPrefacePrivate'); browser.privacy.network.peerConnectionEnabled.set({ - value: false + value: true }); -console.log('Preliminarily disabled WebRTC.'); chrome.privacy.network.networkPredictionEnabled.set({ value: false }); chrome.privacy.network.webRTCIPHandlingPolicy.set({ - value: 'proxy_only' + value: 'disable_non_proxied_udp' }); +console.log('Disabled unproxied UDP.'); function shouldProxyRequest(requestInfo) { return requestInfo.parentFrameId != -1; diff --git a/scrub.js b/scrub.js index 05f939c..65b83ec 100644 --- a/scrub.js +++ b/scrub.js @@ -567,14 +567,14 @@ var coolheadersSetup = function(e) { var asyncSetCookie = new Promise((resolve, reject) => { window.setTimeout(() => { for (header in e.responseHeaders) { - if header.name === 'i2p-location' || header.name === 'i2p-Location' || header.name === 'I2P-location' || header.name === 'I2P-Location' || header.name === 'I2p-Location' || header.name === 'I2p-location' { + if (header.name === 'i2p-location' || header.name === 'i2p-Location' || header.name === 'I2P-location' || header.name === 'I2P-Location' || header.name === 'I2p-Location' || header.name === 'I2p-location') { browser.pageAction.setPopup({ tabId: tabId.id, popup: 'location.html' }); browser.pageAction.show(tabId.id); } - if header.name === 'i2p-TorrentLocation' || header.name === 'i2p-Torrentlocation' || header.name === 'i2p-torrentlocation' || header.name === 'I2P-torrentlocation' || header.name === 'I2P-TorrentLocation' || header.name === 'I2P-Torrentlocation' || header.name === 'I2p-TorrentLocation' || header.name === 'I2p-Torrentlocation' || header.name === 'I2p-torrentlocation' { + if (header.name === 'i2p-TorrentLocation' || header.name === 'i2p-Torrentlocation' || header.name === 'i2p-torrentlocation' || header.name === 'I2P-torrentlocation' || header.name === 'I2P-TorrentLocation' || header.name === 'I2P-Torrentlocation' || header.name === 'I2p-TorrentLocation' || header.name === 'I2p-Torrentlocation' || header.name === 'I2p-torrentlocation') { browser.pageAction.setPopup({ tabId: tabId.id, popup: 'torrent.html'