YT Shorts Redirect

always redirect to normal video

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         YT Shorts Redirect
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  always redirect to normal video
// @description:pt-BR always redirect to normal video
// @description:ar always redirect to normal video
// @description:bg always redirect to normal video
// @description:cs always redirect to normal video
// @description:da always redirect to normal video
// @description:de always redirect to normal video
// @description:el always redirect to normal video
// @description:eo always redirect to normal video
// @description:es always redirect to normal video
// @description:fi always redirect to normal video
// @description:fr always redirect to normal video
// @description:fr-CA always redirect to normal video
// @description:he always redirect to normal video
// @description:hu always redirect to normal video
// @description:id always redirect to normal video
// @description:it always redirect to normal video
// @description:ja always redirect to normal video
// @description:ko always redirect to normal video
// @description:nb always redirect to normal video
// @description:nl always redirect to normal video
// @description:pl always redirect to normal video
// @description:ro always redirect to normal video
// @description:ru always redirect to normal video
// @description:sk always redirect to normal video
// @description:sr always redirect to normal video
// @description:sv always redirect to normal video
// @description:th always redirect to normal video
// @description:tr always redirect to normal video
// @description:uk always redirect to normal video
// @description:ug always redirect to normal video
// @description:vi always redirect to normal video
// @description:zh-CN always redirect to normal video
// @description:zh-TW 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(uri.includes('youtube.com/shorts'))
        location.replace(location.href.replace('shorts', 'v'))

})();