您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect all youtube links for palemoon
当前为
// ==UserScript== // @name Invidiously // @namespace Backend // @description Redirect all youtube links for palemoon // @match *://*.youtube.com/* // @match *://*.youtu.be.com/* // @version 1.0 // @grant none // ==/UserScript== /* N O T E First disable javascript on the youtube site, I personally use ublock to disable all javascript and rubbish, This will improve performance on goanna based browsers, that aren't really supported for the new polymer ui... */ const instances = [ "https://vid.puffyan.us", "https://invidious.snopyta.org", "https://yewtu.be" ]; (() => { //IIFE arrow function if (window.location.pathname == "/") { 'use strict'; document.location.replace(instances[0] + "/feed/popular"); } else if (window.location.href == "/watch") { 'use strict'; let id = window.location.href.match('\/watch.*'); document.location.replace(instances[0] + id[0]); } })();