diff --git a/userscripts/yt-noshorts.user.js b/userscripts/yt-noshorts.user.js new file mode 100644 index 0000000..38ef99e --- /dev/null +++ b/userscripts/yt-noshorts.user.js @@ -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) +}