您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects from https://www.youtube.com/shorts/ID to corresponding https://www.youtube.com/watch?v=ID page
// ==UserScript== // @name Redirect YouTube Shorts to normal video // @description Redirects from https://www.youtube.com/shorts/ID to corresponding https://www.youtube.com/watch?v=ID page // @include https://www.youtube.com/* // @namespace https://greasyfork.org/users/8233 // @license MIT // @version 0.0.2 // ==/UserScript== window.setInterval(function() { if (window.location.href.indexOf('/shorts/') !== -1) { var newurl = window.location.href.replace('https://www.youtube.com/shorts/', 'https://www.youtube.com/watch?v='); if (newurl !== window.location.href) window.location.href = newurl; } }, 500);