Skip to content

Instantly share code, notes, and snippets.

@chev2
Created May 26, 2022 09:59
Show Gist options
  • Save chev2/bd319c8b2e403101cf255d91c27644dc to your computer and use it in GitHub Desktop.
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.
// ==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