Youtube Shorts Custom Page to Normal Video Page

A simple redirect scripts to change the terrible shorts interface to the one for 'normal' videos

  1. // ==UserScript==
  2. // @name Youtube Shorts Custom Page to Normal Video Page
  3. // @namespace https://github.com/marcodallagatta/userscripts/raw/main/youtube-shorts-to-normal
  4. // @version 2022.08.27.16.25
  5. // @description A simple redirect scripts to change the terrible shorts interface to the one for 'normal' videos
  6. // @author Marco Dalla Gatta
  7. // @license MIT
  8. // @match https://www.youtube.com/*
  9. // @icon https://icons.duckduckgo.com/ip2/youtube.com.ico
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. function redir() {
  16. if (window.location.toString().includes('/shorts/')) {
  17. window.location = window.location.toString().replace('shorts/', '/watch?v=')
  18. }
  19. }
  20.  
  21. setInterval(function() {
  22. redir();
  23. }, 2500);
  24. redir();
  25.  
  26. })();