Skip to content

Instantly share code, notes, and snippets.

@kundancool
Last active November 7, 2020 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kundancool/5b41215bf9c95d9a4a383204c683745d to your computer and use it in GitHub Desktop.
Save kundancool/5b41215bf9c95d9a4a383204c683745d to your computer and use it in GitHub Desktop.
darken.js
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