mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 10:38:13 +01:00
fix proxys :3
This commit is contained in:
parent
1b4c6cf056
commit
8f3b1d4c29
1 changed files with 7 additions and 15 deletions
|
@ -45,26 +45,18 @@ function toObject(arr) {
|
||||||
|
|
||||||
// Gets Invidious instances
|
// Gets Invidious instances
|
||||||
const invInstanceList = [
|
const invInstanceList = [
|
||||||
{ uri: "https://invidious.projectsegfau.lt" },
|
"https://inv.zzls.xyz",
|
||||||
{ uri: "https://iv.ggtyler.dev" },
|
"https://iv.datura.network",
|
||||||
{ uri: "https://invidious.protokolla.fi" },
|
"https://vid.theedgeofrage.com"
|
||||||
{ uri: "https://inv.zzls.xyz" },
|
|
||||||
{ uri: "https://invidious.fdn.fr" },
|
|
||||||
{ uri: "https://anontube.lvkaszus.pl" },
|
|
||||||
{ uri: "https://iv.datura.network" },
|
|
||||||
{ uri: "https://yt.drgnz.club" },
|
|
||||||
{ uri: "https://invidious.private.coffee" },
|
|
||||||
{ uri: "https://inv.tux.pizza" },
|
|
||||||
{ uri: "https://invidious.lunar.icu" },
|
|
||||||
{ uri: "https://yt.artemislena.eu" },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Gets a random instance from the list
|
// Gets a random instance from the list
|
||||||
const instance = invInstanceList[Math.floor(Math.random() * invInstanceList.length)];
|
const instance =
|
||||||
|
invInstanceList[Math.floor(Math.random() * invInstanceList.length)];
|
||||||
|
|
||||||
let url;
|
let url;
|
||||||
if (instance.uri.startsWith("https://")) {
|
if (instance.startsWith("https://")) {
|
||||||
url = instance.uri;
|
url = instance;
|
||||||
} else {
|
} else {
|
||||||
url = "https://tube.kuylar.dev";
|
url = "https://tube.kuylar.dev";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue