Mercurial > ec-userscripts
comparison youtube-no-shorts.user.js @ 108:2c4470b73ad9
Switch to semistandard
No more `;` at the start of line.
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Jan 2023 23:24:03 +0900 |
parents | 5510cbaabcac |
children | ef21ef445fc6 |
comparison
equal
deleted
inserted
replaced
107:4bc5a633437c | 108:2c4470b73ad9 |
---|---|
9 // @run-at document-start | 9 // @run-at document-start |
10 // ==/UserScript== | 10 // ==/UserScript== |
11 | 11 |
12 // Source: https://gist.github.com/Ultrawipf/7af006d1b8f75eddd3222d1053c3a243 | 12 // Source: https://gist.github.com/Ultrawipf/7af006d1b8f75eddd3222d1053c3a243 |
13 (function () { | 13 (function () { |
14 'use strict' | 14 'use strict'; |
15 // From https://www.youtube.com/shorts/xxxx to https://www.youtube.com/watch?v=xxxx | 15 // From https://www.youtube.com/shorts/xxxx to https://www.youtube.com/watch?v=xxxx |
16 | 16 |
17 window.location = window.location.href.replace('youtube.com/shorts/', 'youtube.com/watch?v=') | 17 window.location = window.location.href.replace('youtube.com/shorts/', 'youtube.com/watch?v='); |
18 })() | 18 })(); |