From 348616e8474683dfdb26e87855be6b2c0ab3a3ab Mon Sep 17 00:00:00 2001 From: tretrauit <3550664-tretrauit@users.noreply.gitlab.com> Date: Fri, 18 Mar 2022 15:57:34 +0000 Subject: [PATCH] Add yt-noshorts.user.js --- userscripts/yt-noshorts.user.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 userscripts/yt-noshorts.user.js 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) +}