您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect YouTube to chosen Piped instance
当前为
// ==UserScript== // @name YouTube2Piped // @namespace YouTube // @version 1.1 // @description Redirect YouTube to chosen Piped instance // @author SinTan // @match *://*.youtube.com/* // @match *://youtu.be/* // @icon https://raw.githubusercontent.com/TeamPiped/Piped/32e7ddaaff22f4a6c0d7f6359400323da7fefd69/public/img/icons/logo.svg // @grant none // @run-at document-start // @license GPL-3.0 // ==/UserScript== (function () { "use strict"; // Edit instance url here to go to any instance of choice const instance = "https://piped.kavin.rocks" const url = new URL(window.location.href.replace('/shorts/','/watch?v=')); let id = url.searchParams.get('v'); let ts = url.searchParams.get('t'); if (id) { let url_new = instance + '/watch?v=' + id; if (ts) { url_new = url_new + '&t=' + ts; } window.location.replace(url_new); } } )();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址