Created
March 4, 2025 17:20
-
-
Save thykka/7b9e1b248517ab2bfa3f2ee297386324 to your computer and use it in GitHub Desktop.
Use normal player instead of shorts on YouTube
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 | |
// @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