Skip to content

Instantly share code, notes, and snippets.

@adityavm
Last active April 24, 2017 07:00
Show Gist options
  • Save adityavm/7eb9c017c98abe97f8703b88120208c1 to your computer and use it in GitHub Desktop.
Save adityavm/7eb9c017c98abe97f8703b88120208c1 to your computer and use it in GitHub Desktop.
Remove artefacts when maximising HTML5 videos while f.lux is active
// ==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