mirror of
https://github.com/goodtube4u/goodtube.git
synced 2025-11-22 10:16:11 +00:00
Updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name GoodTube
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 4.020
|
||||
// @version 4.021
|
||||
// @description Loads Youtube videos from different sources. Also removes ads, shorts, etc.
|
||||
// @author GoodTube
|
||||
// @match https://*.youtube.com/*
|
||||
@@ -4917,6 +4917,15 @@
|
||||
'https://dl01.yt-dl.click'
|
||||
];
|
||||
|
||||
// Shuffle the download servers to take the load off any one instance
|
||||
let currentIndex = goodTube_downloadServers.length;
|
||||
while (currentIndex != 0) {
|
||||
let randomIndex = Math.floor(Math.random() * currentIndex);
|
||||
currentIndex--;
|
||||
|
||||
[goodTube_downloadServers[currentIndex], goodTube_downloadServers[randomIndex]] = [goodTube_downloadServers[randomIndex], goodTube_downloadServers[currentIndex]];
|
||||
}
|
||||
|
||||
// API Endpoints
|
||||
let goodTube_apis = [
|
||||
// AUTOMATIC OPTION
|
||||
|
||||
Reference in New Issue
Block a user