Switch some stuff about themes around, correct conditional for new redirector thing

This commit is contained in:
idk
2020-09-15 18:39:34 -04:00
parent 7758822256
commit a677552690
6 changed files with 38 additions and 29 deletions

View File

@@ -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

View File

@@ -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'
}
});
}

View File

@@ -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() {

View File

@@ -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({});

View File

@@ -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;

View File

@@ -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'