comparison youtube-no-shorts.user.js @ 93:5510cbaabcac

Add youtube shorts redirector
author nanaya <me@nanaya.pro>
date Tue, 20 Sep 2022 16:00:47 +0900
parents
children 2c4470b73ad9
comparison
equal deleted inserted replaced
92:ebca2e6df3cc 93:5510cbaabcac
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 () {
14 'use strict'
15 // From https://www.youtube.com/shorts/xxxx to https://www.youtube.com/watch?v=xxxx
16
17 window.location = window.location.href.replace('youtube.com/shorts/', 'youtube.com/watch?v=')
18 })()