Last active
October 18, 2022 20:50
-
-
Save Oisann/eaa7b76592e62c5f40997809d653c20a to your computer and use it in GitHub Desktop.
Revisions
-
Oisann revised this gist
Oct 18, 2022 . 1 changed file with 12 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ // ==UserScript== // @name No YT Ambilight // @namespace https://oisann.net/ // @version 0.3 // @description Remove YouTube Cinematics Effect. // @author Oisann // @match https://www.youtube.com/watch* @@ -11,16 +11,16 @@ (function() { 'use strict'; const attribute = "style"; const style = "display: none"; function removeAmbilight() { const element = document.getElementById('cinematics'); if (element) { if (element.getAttribute(attribute) !== style) { element.setAttribute(attribute, style); } } window.requestAnimationFrame(removeAmbilight); } window.requestAnimationFrame(removeAmbilight); })(); -
Oisann revised this gist
Oct 18, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,6 @@ head.appendChild(style); } window.addEventListener("load", function() { addGlobalStyle("#cinematics { display: none }"); }, false); })(); -
Oisann revised this gist
Oct 18, 2022 . No changes.There are no files selected for viewing
-
Oisann renamed this gist
Oct 18, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Oisann created this gist
Oct 18, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ // ==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); })();