您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect to watch page
当前为
// ==UserScript== // @name Redirect-Shorts // @namespace https://github.com/sapondanaisriwan/anti-shorts // @match https://www.youtube.com/* // @grant none // @version 1.0.2 // @author sapondanaisriwan // @description Redirect to watch page // @license MIT // @run-at document-start // @icon https://user-images.githubusercontent.com/64634605/235854015-81c5986d-b858-4f64-b14c-93bba56ba265.png // ==/UserScript== "use strict"; function redirectToWatchPage() { const { origin, pathname } = location; const isShorts = pathname.startsWith("/shorts/"); const newURL = `${origin}${pathname.replace("shorts", "watch")}`; isShorts && location.replace(newURL); } function run() { redirectToWatchPage(); document.addEventListener("yt-navigate-start", redirectToWatchPage); } run();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址