Skip to content

Instantly share code, notes, and snippets.

@phoebejaffe
Created November 19, 2019 16:50
Show Gist options
  • Select an option

  • Save phoebejaffe/a41458c3bb286a8f6a79786b836a002d to your computer and use it in GitHub Desktop.

Select an option

Save phoebejaffe/a41458c3bb286a8f6a79786b836a002d to your computer and use it in GitHub Desktop.
html {
filter: brightness(0.8) contrast(130%) invert(100%) brightness(1.5) hue-rotate(180deg);
}
@phoebejaffe
Copy link
Author

In JavaScript:

const style = document.createElement('style');
style.textContent = 'html, img, video {filter: invert(100%) hue-rotate(180deg);}';
document.head.appendChild(style);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment