Last active
February 5, 2022 00:09
-
-
Save supercaracal/0745e07dc597c387a4e9e88f30850c13 to your computer and use it in GitHub Desktop.
Cover document objects with a dark layer for saving nocturnal animal's eyes.
This file contains 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
var div = document.createElement('div'); div.setAttribute('style', 'display: block; position: fixed; z-index: 2147483647; background-color: #333333; top: 0px; left: 0px; height: 100%; width: 100%; opacity: 0.7;'); document.body.appendChild(div); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Paste your browser address bar with
javascript:
or run the snippet on browser console.