Skip to content

Instantly share code, notes, and snippets.

@minhajuddin
Created December 8, 2022 20:35
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 minhajuddin/de1efd27c11e3b127f37c421878bde97 to your computer and use it in GitHub Desktop.
Save minhajuddin/de1efd27c11e3b127f37c421878bde97 to your computer and use it in GitHub Desktop.
grease monkey script to remove the video controls from netflix
// ==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