Skip to content

Instantly share code, notes, and snippets.

@thykka
Created March 4, 2025 17:20
Show Gist options
  • Save thykka/7b9e1b248517ab2bfa3f2ee297386324 to your computer and use it in GitHub Desktop.
Save thykka/7b9e1b248517ab2bfa3f2ee297386324 to your computer and use it in GitHub Desktop.
Use normal player instead of shorts on YouTube
// ==UserScript==
// @name Youtube Shorts redirect
// @description ...
// @version 2024-10-12
// @match *://*.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @grant none
// @run-at document-start
// ==/UserScript==
const shortsRedirect = () => window.location.pathname.startsWith('/shorts/') &&
window.location.replace(
window.location.href.replace('/shorts/', '/watch?v=')
);
window.addEventListener('yt-navigate-finish', shortsRedirect);
shortsRedirect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment