Skip to content

Instantly share code, notes, and snippets.

@TypeA2
Last active July 3, 2023 12:49
Show Gist options
  • Save TypeA2/9aede41c4a83b8462a64918717be5ece to your computer and use it in GitHub Desktop.
Save TypeA2/9aede41c4a83b8462a64918717be5ece to your computer and use it in GitHub Desktop.
Redirect YouTube shorts to their /watch equivalent
// ==UserScript==
// @name Redirect YouTube shorts to normal video pages
// @namespace http://tampermonkey.net/
// @version 1.0
// @author TypeA2
// @match https://*.youtube.com/shorts/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.location.replace(window.location.href.replace("/shorts/", "/watch?v="));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment