annotate youtube-no-shorts.user.js @ 119:34657b8835e2

Add script to adjust fastmail remote image message
author nanaya <me@nanaya.net>
date Tue, 17 Jan 2023 15:48:38 +0900
parents 8de2d53a4cb1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
93
5510cbaabcac Add youtube shorts redirector
nanaya <me@nanaya.pro>
parents:
diff changeset
1 // ==UserScript==
118
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
2 // @name Youtube shorts redirector
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
3 // @version 0.1
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
4 // @description Redirects all youtube shorts videos to normal video pages
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
5 // @author Ultrawipf
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
6 // @match https://*.youtube.com/shorts/*
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
7 // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Youtube_shorts_icon.svg/193px-Youtube_shorts_icon.svg.png
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
8 // @grant none
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
9 // @run-at document-start
8de2d53a4cb1 Fix metadata
nanaya <me@nanaya.net>
parents: 117
diff changeset
10 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/youtube-no-shorts.user.js
93
5510cbaabcac Add youtube shorts redirector
nanaya <me@nanaya.pro>
parents:
diff changeset
11 // ==/UserScript==
5510cbaabcac Add youtube shorts redirector
nanaya <me@nanaya.pro>
parents:
diff changeset
12
109
ef21ef445fc6 Cleanups
nanaya <me@nanaya.net>
parents: 108
diff changeset
13 'use strict';
ef21ef445fc6 Cleanups
nanaya <me@nanaya.net>
parents: 108
diff changeset
14
93
5510cbaabcac Add youtube shorts redirector
nanaya <me@nanaya.pro>
parents:
diff changeset
15 // Source: https://gist.github.com/Ultrawipf/7af006d1b8f75eddd3222d1053c3a243
117
d9dc190bccaf Undo combining fixes into single script per site
nanaya <me@nanaya.net>
parents: 109
diff changeset
16 // From https://www.youtube.com/shorts/xxxx to https://www.youtube.com/watch?v=xxxx
d9dc190bccaf Undo combining fixes into single script per site
nanaya <me@nanaya.net>
parents: 109
diff changeset
17 window.location = window.location.href.replace('youtube.com/shorts/', 'youtube.com/watch?v=');