Last active
November 7, 2020 13:24
-
-
Save kundancool/5b41215bf9c95d9a4a383204c683745d to your computer and use it in GitHub Desktop.
darken.js
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
javascript: (function() { | |
var newSS, styles = '* { background: #282b2e ! important; color: #e0e2e4 !important } :link, :link * { color: #2868C7 !important } :visited, :visited * { color: #dddddd !important }'; | |
if (document.createStyleSheet) { | |
document.createStyleSheet("javascript:'" + styles + "'"); | |
} else { | |
newSS = document.createElement('link'); | |
newSS.rel = 'stylesheet'; | |
newSS.href = 'data:text/css,' + escape(styles); | |
document.getElementsByTagName("head")[0].appendChild(newSS); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment