Skip to content

Instantly share code, notes, and snippets.

@xerosanyam
Created May 5, 2020 08:59
Show Gist options
  • Save xerosanyam/ddbc4bceccde221af5a12d7a4c596d91 to your computer and use it in GitHub Desktop.
Save xerosanyam/ddbc4bceccde221af5a12d7a4c596d91 to your computer and use it in GitHub Desktop.
add this to bookmarklet & see the magic, forked
javascript: (function() {
let domStyle = document.getElementById('domStylee');
if (domStyle) {
document.body.removeChild(domStyle);
return;
}
domStyle = document.createElement("style");
domStyle.setAttribute('id', 'domStylee');
domStyle.append(
['* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }'],
['* * { background-color: rgba(0,255,0,.2) !important; }'],
['* * * { background-color: rgba(0,0,255,.2) !important; }'],
['* * * * { background-color: rgba(255,0,255,.2) !important; }'],
['* * * * * { background-color: rgba(0,255,255,.2) !important; }'],
['* * * * * * { background-color: rgba(255,255,0,.2) !important; }'],
['* * * * * * * { background-color: rgba(255,0,0,.2) !important; }'],
['* * * * * * * * { background-color: rgba(0,255,0,.2) !important; }'],
['* * * * * * * * * { background-color: rgba(0,0,255,.2) !important; }'].join()
);
document.body.appendChild(domStyle);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment