YT Shorts Redirect

always redirect to normal video

目前为 2023-10-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         YT Shorts Redirect
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  always redirect to normal video
// @author       fienestar
// @match        https://www.youtube.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener("yt-navigate-start", (event) => {
        console.log(event)
        const uri=event.target.baseURI;
        if(uri.includes('shorts/'))
            location.replace(uri.replace('shorts', 'v'))
    });

    document.getElementsByClassName('ytp-pause-overlay-container')?.forEach?.(container => container.remove())
    if(location.href.includes('shorts/'))
        location.replace(location.href.replace('shorts', 'v'))

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址