Last active
May 6, 2025 21:24
-
-
Save florczakraf/5d27bf710f76548191c477bcac1c20af to your computer and use it in GitHub Desktop.
YouTube shorts in normal player
This file contains hidden or 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 in normal player | |
| // @version 1.0.2 | |
| // @description This script will redirect YouTube shorts URLs to a normal player | |
| // @author andr | |
| // @match https://www.youtube.com/shorts/* | |
| // @match https://youtube.com/shorts/* | |
| // @updateURL https://gist.github.com/florczakraf/5d27bf710f76548191c477bcac1c20af/raw/ytshortsinnormalplayer.user.js | |
| // @downloadURL https://gist.github.com/florczakraf/5d27bf710f76548191c477bcac1c20af/raw/ytshortsinnormalplayer.user.js | |
| // @grant none | |
| // ==/UserScript== | |
| const current_url = document.location.href; | |
| const video_id = current_url.split('shorts/')[1]; | |
| const new_url = "https://www.youtube.com/v/" + video_id; | |
| location.replace(new_url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment