您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Rotates youtube videos every minute
// ==UserScript== // @name 1Min Website Rotator // @namespace yt.video.rotator // @version 1.0 // @description Rotates youtube videos every minute // @author stealtosvra // @match https://youtube.com/* // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/159px-YouTube_full-color_icon_%282017%29.svg.png?20211015074811 // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const ytLinks = [ /// COPY AND PASTE BELOW , CHANGE URLS { currentUrl: "https://youtube.com/1", redirectUrl: "https://youtube.com/2" }, /// END OF LOOP { currentUrl: "https://youtube.com/2", redirectUrl: "https://youtube.com/1" } ]; function redirectAfterDelay(url) { setTimeout(function () { window.location.href = url; }, 60000); } const currentUrl = window.location.href; const nextLink = ytLinks.find(link => link.currentUrl === currentUrl); if (nextLink) { redirectAfterDelay(nextLink.redirectUrl); } })();