您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
redirect YouTube pages to Invidious for privacy-friendly viewing
// ==UserScript== // @name Redirect YouTube to Invidious // @namespace http://tampermonkey.net/ // @version 1.0 // @description redirect YouTube pages to Invidious for privacy-friendly viewing // @author vorm-- // @match *://www.youtube.com/* // @grant GM_registerMenuCommand // @license MIT // ==/UserScript== (function() { 'use strict'; const menu_command_id_2 = GM_registerMenuCommand("Open in Invidious", function(event) { var currentUrl = window.location.href; var invidiousUrl = currentUrl.replace('www.youtube.com', 'redirect.invidious.io'); window.location.href = invidiousUrl; }); })();