Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Instant night mode for any website!

Copy and paste this into a bookmark:

html, img, video {
-webkit-filter: invert(1) hue-rotate(180deg);
filter: invert(1) hue-rotate(180deg);
body {
background: black;

This comment has been minimized.

Copy link

@wangwy wangwy commented Dec 8, 2015

when i add columns to a page style,the picture do not show.

how to solve this problem?


This comment has been minimized.

Copy link

@torappinfo torappinfo commented Apr 1, 2020

For webview/chrome 81, this does not work. changing html to body as "body,img,video{filter:invert(1)}" seems work but make some pages completely black.
So, what is the difference between html and body?

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