YT Shorts Redirect

always redirect to normal video

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل 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'))

})();