mirror of
https://github.com/kou029w/user-script.git
synced 2025-01-18 08:05:09 +00:00
create youtube-restore-to-scroll.user.js
This commit is contained in:
parent
73dfe2e1a2
commit
ca7340747b
2 changed files with 17 additions and 0 deletions
|
@ -22,6 +22,10 @@ YouTube から piped.kavin.rocks にリダイレクトする
|
|||
|
||||
Twitter の画像 URL を短縮する
|
||||
|
||||
## youtube-restore-to-scroll.user.js
|
||||
|
||||
YouTube をスペースキーでスクロールできるように戻す
|
||||
|
||||
## ライセンス
|
||||
|
||||
MIT License
|
||||
|
|
13
youtube-restore-to-scroll.user.js
Normal file
13
youtube-restore-to-scroll.user.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
// ==UserScript==
|
||||
// @match https://www.youtube.com/*
|
||||
// ==/UserScript==
|
||||
"use strict";
|
||||
|
||||
function main() {
|
||||
const { yt } = window;
|
||||
if (yt) yt.config_.EXPERIMENT_FLAGS.global_spacebar_pause = false;
|
||||
}
|
||||
|
||||
const script = document.createElement("script");
|
||||
script.textContent = `"use strict";${main.name}();${String(main)}`;
|
||||
document.head.append(script);
|
Loading…
Add table
Reference in a new issue