Created
May 26, 2022 09:59
-
-
Save chev2/bd319c8b2e403101cf255d91c27644dc to your computer and use it in GitHub Desktop.
A really simple script that just redirects YouTube shorts URLs to the regular YouTube player.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube Shorts Redirect | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.0 | |
// @description Redirects YouTube shorts links to the regular youtube video player. | |
// @author Chev | |
// @match *://*.youtube.com/shorts/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
location.replace(location.href.replace("shorts/", "watch?v=")); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment