Created
December 8, 2022 20:35
-
-
Save minhajuddin/de1efd27c11e3b127f37c421878bde97 to your computer and use it in GitHub Desktop.
grease monkey script to remove the video controls from netflix
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 remove the video controls from netflix | |
// @version 1 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addGlobalStyle(` | |
.watch-video--bottom-controls-container { | |
display: none !important; | |
} | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment