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
|
|
12 // Source: https://gist.github.com/Ultrawipf/7af006d1b8f75eddd3222d1053c3a243
|
|
13 (function () {
|
108
|
14 'use strict';
|
93
|
15 // From https://www.youtube.com/shorts/xxxx to https://www.youtube.com/watch?v=xxxx
|
|
16
|
108
|
17 window.location = window.location.href.replace('youtube.com/shorts/', 'youtube.com/watch?v=');
|
|
18 })();
|