Created
May 14, 2022 15:55
-
-
Save gyli/5ab596a955b8d31883f02fbefde1cfef to your computer and use it in GitHub Desktop.
TamperMonkey Script: Youtube Restyle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Youtube Restyle | |
// @namespace https://gist.github.com/gyli/5ab596a955b8d31883f02fbefde1cfef | |
// @version 0.1 | |
// @description Update Youtube player position to avoid unexpected scrolling | |
// @author Guangyang Li | |
// @match https://www.youtube.com/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// ==/UserScript== | |
// Prevent player from scrolling with Surfingkeys | |
GM_addStyle ( | |
'.html5-video-player { position: static !important; }' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment