Skip to content

Instantly share code, notes, and snippets.

@gyli
Created May 14, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyli/5ab596a955b8d31883f02fbefde1cfef to your computer and use it in GitHub Desktop.
Save gyli/5ab596a955b8d31883f02fbefde1cfef to your computer and use it in GitHub Desktop.
TamperMonkey Script: Youtube Restyle
// ==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