93
|
1 // ==UserScript==
|
|
2 // @name Youtube shorts redirector
|
|
3 // @version 0.1
|
|
4 // @description Redirects all youtube shorts videos to normal video pages
|
|
5 // @author Ultrawipf
|
|
6 // @match https://*.youtube.com/shorts/*
|
|
7 // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Youtube_shorts_icon.svg/193px-Youtube_shorts_icon.svg.png
|
|
8 // @grant none
|
|
9 // @run-at document-start
|
|
10 // ==/UserScript==
|
|
11
|
109
|
12 'use strict';
|
|
13
|
93
|
14 // Source: https://gist.github.com/Ultrawipf/7af006d1b8f75eddd3222d1053c3a243
|
109
|
15 function shortDirect () {
|
93
|
16 // From https://www.youtube.com/shorts/xxxx to https://www.youtube.com/watch?v=xxxx
|
109
|
17 window.location = window.location.href.replace('youtube.com/shorts/', 'youtube.com/watch?v=');
|
|
18 }
|
93
|
19
|
109
|
20 shortDirect();
|