Last active
October 21, 2025 07:20
-
-
Save kyohsuke/7ff0d2347d3704a2a7472d205b80c7ec to your computer and use it in GitHub Desktop.
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 to Normal watch | |
| // @version 1.0.0 | |
| // @description Automatically move shorts to watch URL | |
| // @author kyohsuke | |
| // @match https://www.youtube.com/shorts/* | |
| // @homepageURL https://gist.github.com/kyohsuke/7ff0d2347d3704a2a7472d205b80c7ec | |
| // @updateURL https://gist.githubusercontent.com/kyohsuke/7ff0d2347d3704a2a7472d205b80c7ec/raw/youtubeShortsReplacer.user.js | |
| // @downloadURL https://gist.githubusercontent.com/kyohsuke/7ff0d2347d3704a2a7472d205b80c7ec/raw/youtubeShortsReplacer.user.js | |
| // @icon https://cdn3.iconfinder.com/data/icons/social-network-30/512/social-06-1024.png | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| if(location.pathname.startsWith('/shorts')) { | |
| let id = location.pathname.replace('/shorts/', ''); | |
| window.location.replace(`${location.origin}/watch?v=${id}`); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment