Skip to content

Instantly share code, notes, and snippets.

@fs-c
Created September 23, 2019 15:23
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 fs-c/447b6840995178b8ee6f678a310648fa to your computer and use it in GitHub Desktop.
Save fs-c/447b6840995178b8ee6f678a310648fa to your computer and use it in GitHub Desktop.
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