2022-03-18 15:57:34 +00:00
|
|
|
// ==UserScript==
|
|
|
|
// @name NoShorts for YouTube
|
2022-03-18 16:04:58 +00:00
|
|
|
// @description Redirects Shorts to normal video webpage
|
2022-03-18 15:57:34 +00:00
|
|
|
// @namespace tretrauit-dev
|
2022-03-18 16:04:58 +00:00
|
|
|
// @match *://*.youtube.com/shorts/*
|
|
|
|
// @exclude-match`*://music.youtube.com/*
|
2022-03-18 15:57:34 +00:00
|
|
|
// @grant none
|
2022-03-18 16:04:58 +00:00
|
|
|
// @version 1.1.1
|
2022-03-18 15:57:34 +00:00
|
|
|
// @author tretrauit
|
|
|
|
// @description 22:36:53, 18/3/2022
|
|
|
|
// @homepageURL https://gitlab.com/tretrauit/scripts
|
|
|
|
// @supportURL https://gitlab.com/tretrauit/scripts/-/issues
|
2022-03-18 15:59:52 +00:00
|
|
|
// @downloadURL https://gitlab.com/tretrauit/scripts/-/raw/main/userscripts/yt-noshorts.user.js
|
2022-03-18 15:57:34 +00:00
|
|
|
// @noframes
|
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
console.log("Fuck you YouTube")
|
|
|
|
// Make sure our script won't die because const
|
|
|
|
{
|
|
|
|
const shortPath = window.location.pathname.split("/")
|
|
|
|
const shortId = shortPath[shortPath.length - 1]
|
|
|
|
window.location.replace("https://www.youtube.com/watch?v=" + shortId)
|
|
|
|
}
|