Last active
April 24, 2017 07:00
-
-
Save adityavm/7eb9c017c98abe97f8703b88120208c1 to your computer and use it in GitHub Desktop.
Remove artefacts when maximising HTML5 videos while f.lux is active
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 full screen HTML5 video artefacts under f.lux | |
// @namespace RemoveFluxVideoArtefacts | |
// @include * | |
// @author Aditya Mukherjee | |
// @description Remove artefacts when maximising HTML5 videos while f.lux is active | |
// ==/UserScript== | |
/** | |
* Solution from this chrome extension[1], for those who don't want to install a full extension. | |
* [1]: https://chrome.google.com/webstore/detail/videofixer-for-flux/gmkeppffdejhpppfnbgakglpoeaobhhh | |
*/ | |
window.addEventListener("load", () => { | |
let style = document.createElement("style"); | |
style.type = "text/css"; | |
style.innerHTML = ` | |
video { opacity: 0.996 !important; } | |
`; | |
document.querySelector("head").appendChild(style); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment