diff --git a/instances/data.json b/instances/data.json
index f0ee447..cec6ee4 100644
--- a/instances/data.json
+++ b/instances/data.json
@@ -16,7 +16,7 @@
"https://invidious.privacy.gd",
"https://invidious.namazso.eu"
],
- "onion": [
+ "tor": [
"http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion",
"http://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion",
"http://kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad.onion",
@@ -73,7 +73,7 @@
"https://tw.artemislena.eu",
"https://de.nttr.stream"
],
- "onion": [
+ "tor": [
"http://3nzoldnxplag42gqjs23xvghtzf6t6yzssrtytnntc6ppc7xxuoneoad.onion",
"http://nitter.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd.onion",
"http://nitter7bryz3jv7e3uekphigvmoyoem4al3fynerxkj22dmoxoq553qd.onion",
@@ -126,7 +126,7 @@
"https://teddit.adminforge.de",
"https://teddit.bus-hit.me"
],
- "onion": [
+ "tor": [
"http://teddit4w6cmzmj5kimhfcavs7yo5s7alszvsi2khqutqtlaanpcftfyd.onion",
"http://snoo.ioensistjs7wd746zluwixvojbbkxhr37lepdvwtdfeav673o64iflqd.onion",
"http://ibarajztopxnuhabfu7fg6gbudynxofbnmvis3ltj6lfx47b6fhrd5qd.onion",
@@ -142,7 +142,7 @@
"https://wikiless.sethforprivacy.com",
"https://wiki.604kph.xyz"
],
- "onion": [
+ "tor": [
"http://dj2tbh2nqfxyfmvq33cjmhuw7nb6am7thzd3zsjvizeqf374fixbrxyd.onion"
]
},
@@ -166,7 +166,7 @@
"https://simplytranslate.pussthecat.org",
"https://translate.northboot.xyz"
],
- "onion": [
+ "tor": [
"http://fyng2tsmzmvxmojzbbwmfnsn2lrcyftf4cw6rk5j2v2huliazud3fjid.onion",
"http://xxtbwyb5z5bdvy2f6l2yquu5qilgkjeewno4qfknvb3lkg3nmoklitid.onion"
]
@@ -276,7 +276,7 @@
"https://xeek.com",
"https://searx.roflcopter.fr"
],
- "onion": [
+ "tor": [
"http://3afisqjw2rxm6z7mmstyt5rx75qfqrgxnkzftknbp2vhipr2nrmrjdyd.onion",
"http://searxbgetrkiwxhdwi6svpgh7eotopqyxhbqiokrwzg7dcte44t36kyd.onion",
"http://suche.xyzco456vwisukfg.onion",
@@ -321,7 +321,7 @@
"https://rimgo.totaldarkness.net",
"https://rimgo.bus-hit.me"
],
- "onion": [
+ "tor": [
"http://l4d4owboqr6xcmd6lf64gbegel62kbudu3x3jnldz2mx6mhn3bsv3zyd.onion",
"http://jx3dpcwedpzu2mh54obk5gvl64i2ln7pt5mrzd75s4jnndkqwzaim7ad.onion"
]
diff --git a/src/assets/javascripts/helpers/common.js b/src/assets/javascripts/helpers/common.js
index 05ad60f..4c27f16 100644
--- a/src/assets/javascripts/helpers/common.js
+++ b/src/assets/javascripts/helpers/common.js
@@ -90,6 +90,7 @@ function isFirefox() {
function processDefaultCustomInstances(
name,
+ protocol,
nameHelper,
document,
getNameRedirectsChecks,
@@ -99,32 +100,33 @@ function processDefaultCustomInstances(
) {
let nameCustomInstances = [];
- let nameCheckListElement = document.getElementById(`${name}-checklist`);
+ let nameCheckListElement = document.getElementById(`${name}-${protocol}-checklist`);
let nameDefaultRedirects;
function calcNameCheckBoxes() {
let isTrue = true;
- for (const item of nameHelper.getRedirects()[name].normal)
+ for (const item of nameHelper.getRedirects()[name][protocol])
if (!nameDefaultRedirects.includes(item)) {
isTrue = false;
break;
}
for (const element of nameCheckListElement.getElementsByTagName('input'))
element.checked = nameDefaultRedirects.includes(element.id)
- document.getElementById(`${name}-toogle-all`).checked = isTrue;
+ document.getElementById(`${name}-${protocol}-toogle-all`).checked = isTrue;
}
nameDefaultRedirects = getNameRedirectsChecks();
+
nameCheckListElement.innerHTML =
[
- `
Toggle All
`,
- ...nameHelper.getRedirects()[name].normal.map((x) => `${x}
`),
+ `Toggle All
`,
+ ...nameHelper.getRedirects()[name][protocol].map((x) => `${x}
`),
].join('\n
\n');
calcNameCheckBoxes();
- document.getElementById(`${name}-toogle-all`).addEventListener("change", (event) => {
+ document.getElementById(`${name}-${protocol}-toogle-all`).addEventListener("change", (event) => {
if (event.target.checked)
- nameDefaultRedirects = [...nameHelper.getRedirects()[name].normal];
+ nameDefaultRedirects = [...nameHelper.getRedirects()[name][protocol]];
else
nameDefaultRedirects = [];
setNameRedirectsChecks(nameDefaultRedirects);
@@ -132,7 +134,7 @@ function processDefaultCustomInstances(
});
for (let element of nameCheckListElement.getElementsByTagName('input')) {
- if (element.id != `${name}-toogle-all`)
+ if (element.id != `${name}-${protocol}-toogle-all`)
document.getElementById(element.id).addEventListener("change", (event) => {
if (event.target.checked)
nameDefaultRedirects.push(element.id)
@@ -147,7 +149,7 @@ function processDefaultCustomInstances(
nameCustomInstances = getNameCustomRedirects();
function calcNameCustomInstances() {
- document.getElementById(`${name}-custom-checklist`).innerHTML =
+ document.getElementById(`${name}-${protocol}-custom-checklist`).innerHTML =
nameCustomInstances.map(
(x) => `${x}
+
+
Protocol
+
+
+
-
-
Default Instances
-
-
-
-
-
Custom Instances
-
-