Add yt-noshorts.user.js

This commit is contained in:
tretrauit 2022-03-18 15:57:34 +00:00
parent 0ebb925c87
commit 348616e847

View File

@ -0,0 +1,20 @@
// ==UserScript==
// @name NoShorts for YouTube
// @namespace tretrauit-dev
// @match https://www.youtube.com/shorts/*
// @grant none
// @version 1.0
// @author tretrauit
// @description 22:36:53, 18/3/2022
// @homepageURL https://gitlab.com/tretrauit/scripts
// @supportURL https://gitlab.com/tretrauit/scripts/-/issues
// @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)
}