Fixed one of the errors (1 remaining)
This commit is contained in:
parent
799b8e3bdf
commit
2e44814315
@ -114,13 +114,15 @@ async function processDefaultCustomInstances(target, name, protocol, document) {
|
|||||||
|
|
||||||
function calcNameCheckBoxes() {
|
function calcNameCheckBoxes() {
|
||||||
let isTrue = true;
|
let isTrue = true;
|
||||||
for (const item of redirects[name][protocol])
|
for (const item of redirects[name][protocol]) {
|
||||||
if (!nameDefaultRedirects.includes(item)) {
|
if (!nameDefaultRedirects.includes(item)) {
|
||||||
isTrue = false;
|
isTrue = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (const element of nameCheckListElement.getElementsByTagName('input'))
|
}
|
||||||
|
for (const element of nameCheckListElement.getElementsByTagName('input')) {
|
||||||
element.checked = nameDefaultRedirects.includes(element.className)
|
element.checked = nameDefaultRedirects.includes(element.className)
|
||||||
|
}
|
||||||
if (nameDefaultRedirects.length == 0) isTrue = false;
|
if (nameDefaultRedirects.length == 0) isTrue = false;
|
||||||
nameProtocolElement.getElementsByClassName('toggle-all')[0].checked = isTrue;
|
nameProtocolElement.getElementsByClassName('toggle-all')[0].checked = isTrue;
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ function all() {
|
|||||||
...youtubeRedirects.piped.tor,
|
...youtubeRedirects.piped.tor,
|
||||||
|
|
||||||
...youtubeRedirects.pipedMaterial.normal,
|
...youtubeRedirects.pipedMaterial.normal,
|
||||||
...youtubeRedirects.pipedMaterial.tor,
|
//...youtubeRedirects.pipedMaterial.tor,
|
||||||
|
|
||||||
...invidiousNormalCustomRedirects,
|
...invidiousNormalCustomRedirects,
|
||||||
...invidiousTorCustomRedirects,
|
...invidiousTorCustomRedirects,
|
||||||
@ -380,9 +380,9 @@ function copyPasteInvidiousCookies(test, from) {
|
|||||||
|
|
||||||
if (protocol == 'loki') checkedInstances = [...invidiousLokiCustomRedirects];
|
if (protocol == 'loki') checkedInstances = [...invidiousLokiCustomRedirects];
|
||||||
else if (protocol == 'i2p') checkedInstances = [...invidiousI2pCustomRedirects];
|
else if (protocol == 'i2p') checkedInstances = [...invidiousI2pCustomRedirects];
|
||||||
else if (protocol == 'tor') checkedInstances = [...invidiousTorRedirectsChecks, ...invidiousTorCustomRedirects]
|
else if (protocol == 'tor') checkedInstances = [...invidiousTorRedirectsChecks, ...invidiousTorCustomRedirects];
|
||||||
if ((instancesList.length === 0 && protocolFallback) || protocol == 'normal') {
|
if ((checkedInstances.length === 0 && protocolFallback) || protocol == 'normal') {
|
||||||
checkedInstances = [...invidiousNormalRedirectsChecks, ...invidiousNormalCustomRedirects]
|
checkedInstances = [...invidiousNormalRedirectsChecks, ...invidiousNormalCustomRedirects];
|
||||||
}
|
}
|
||||||
const i = checkedInstances.indexOf(protocolHost);
|
const i = checkedInstances.indexOf(protocolHost);
|
||||||
if (i !== -1) checkedInstances.splice(i, 1);
|
if (i !== -1) checkedInstances.splice(i, 1);
|
||||||
@ -400,7 +400,7 @@ function pasteInvidiousCookies() {
|
|||||||
if (protocol == 'loki') checkedInstances = [...invidiousLokiCustomRedirects];
|
if (protocol == 'loki') checkedInstances = [...invidiousLokiCustomRedirects];
|
||||||
else if (protocol == 'i2p') checkedInstances = [...invidiousI2pCustomRedirects];
|
else if (protocol == 'i2p') checkedInstances = [...invidiousI2pCustomRedirects];
|
||||||
else if (protocol == 'tor') checkedInstances = [...invidiousTorRedirectsChecks, ...invidiousTorCustomRedirects]
|
else if (protocol == 'tor') checkedInstances = [...invidiousTorRedirectsChecks, ...invidiousTorCustomRedirects]
|
||||||
if ((instancesList.length === 0 && protocolFallback) || protocol == 'normal') {
|
if ((checkedInstances.length === 0 && protocolFallback) || protocol == 'normal') {
|
||||||
checkedInstances = [...invidiousNormalRedirectsChecks, ...invidiousNormalCustomRedirects]
|
checkedInstances = [...invidiousNormalRedirectsChecks, ...invidiousNormalCustomRedirects]
|
||||||
}
|
}
|
||||||
utils.getCookiesFromStorage('invidious', checkedInstances, 'PREFS');
|
utils.getCookiesFromStorage('invidious', checkedInstances, 'PREFS');
|
||||||
|
@ -2754,13 +2754,13 @@
|
|||||||
</form>
|
</form>
|
||||||
<div class="checklist custom-checklist"></div>
|
<div class="checklist custom-checklist"></div>
|
||||||
<div class="buttons buttons-inline">
|
<div class="buttons buttons-inline">
|
||||||
<label class="button button-inline" id="latency-facilmap-label" for="latency-facilmap">
|
<label class="button button-inline" id="latency-facil-label" for="latency-facil">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
|
||||||
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path>
|
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
<x data-localise="__MSG_testInstancesLatency__">Test Instances Latency</x>
|
<x data-localise="__MSG_testInstancesLatency__">Test Instances Latency</x>
|
||||||
</label>
|
</label>
|
||||||
<input class="button button-inline" id="latency-facilmap" style="display:none;">
|
<input class="button button-inline" id="latency-facil" style="display:none;">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tor">
|
<div class="tor">
|
||||||
|
@ -18,7 +18,7 @@ section#maps_page.option-block
|
|||||||
include ../../widgets/instances.pug
|
include ../../widgets/instances.pug
|
||||||
+instances('https://facilmap.com')
|
+instances('https://facilmap.com')
|
||||||
include ../../widgets/latency.pug
|
include ../../widgets/latency.pug
|
||||||
+latency('facilmap')
|
+latency('facil')
|
||||||
.tor
|
.tor
|
||||||
+instances('http://facilmap.onion')
|
+instances('http://facilmap.onion')
|
||||||
include ../../widgets/instances.pug
|
include ../../widgets/instances.pug
|
||||||
|
@ -50,7 +50,9 @@ section#youtube_page.option-block
|
|||||||
#piped
|
#piped
|
||||||
hr
|
hr
|
||||||
.normal
|
.normal
|
||||||
|
include ../../widgets/instances.pug
|
||||||
+instances('https://piped.com')
|
+instances('https://piped.com')
|
||||||
|
include ../../widgets/latency.pug
|
||||||
+latency('piped')
|
+latency('piped')
|
||||||
.tor
|
.tor
|
||||||
+instances('http://piped.onion')
|
+instances('http://piped.onion')
|
||||||
@ -65,7 +67,9 @@ section#youtube_page.option-block
|
|||||||
#pipedMaterial
|
#pipedMaterial
|
||||||
hr
|
hr
|
||||||
.normal
|
.normal
|
||||||
|
include ../../widgets/instances.pug
|
||||||
+instances('https://piped-material.com')
|
+instances('https://piped-material.com')
|
||||||
|
include ../../widgets/latency.pug
|
||||||
+latency('pipedMaterial')
|
+latency('pipedMaterial')
|
||||||
.tor
|
.tor
|
||||||
+instances('http://piped-material.onion')
|
+instances('http://piped-material.onion')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user