Skip to content

Instantly share code, notes, and snippets.

@Oisann
Last active October 18, 2022 20:50
Show Gist options
  • Select an option

  • Save Oisann/eaa7b76592e62c5f40997809d653c20a to your computer and use it in GitHub Desktop.

Select an option

Save Oisann/eaa7b76592e62c5f40997809d653c20a to your computer and use it in GitHub Desktop.
Click on the Raw button below and Tampermonkey should automatically pick it up. Just press install.
// ==UserScript==
// @name No YT Ambilight
// @namespace https://oisann.net/
// @version 0.1
// @description Remove YouTube Cinematics Effect.
// @author Oisann
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
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.replace(/;/g, ' !important;');
head.appendChild(style);
}
window.addEventListener("load", function() {
addGlobalStyle("div#cinematics { display: none }");
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment