Add yt-noshorts.user.js
This commit is contained in:
parent
0ebb925c87
commit
348616e847
20
userscripts/yt-noshorts.user.js
Normal file
20
userscripts/yt-noshorts.user.js
Normal 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)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user