Last active
May 31, 2017 05:06
-
-
Save pombadev/de709bb2fdb4e5861ad08adb6a875ae7 to your computer and use it in GitHub Desktop.
Dim any website
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
$('<div id="dim_overlay">') | |
.css({ | |
'background-color': 'rgba(0, 0, 0, 0.5)', // change the last value to adjust the brightness. | |
'min-height': '100%', | |
'min-width': '100%', | |
'position': 'fixed', | |
'pointer-events': 'none', // keeps website's functionality intact | |
'z-index': 999 | |
}) | |
.appendTo(document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment