Skip to content

Instantly share code, notes, and snippets.

@kyohsuke
Last active October 21, 2025 07:20
Show Gist options
  • Select an option

  • Save kyohsuke/7ff0d2347d3704a2a7472d205b80c7ec to your computer and use it in GitHub Desktop.

Select an option

Save kyohsuke/7ff0d2347d3704a2a7472d205b80c7ec to your computer and use it in GitHub Desktop.
// ==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