Created
March 7, 2021 06:16
-
-
Save antiops/e2f597308f24dbcae280d27bf4ccdb67 to your computer and use it in GitHub Desktop.
darkmode on any site
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
| const divs = document.querySelectorAll('*') | |
| for (let i = 0; i < divs.length; i++){ | |
| divs[i].style.backgroundColor = 'rgb(34,34,34)' | |
| divs[i].style.color = 'rgb(255 255 255)' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment