Skip to content

Instantly share code, notes, and snippets.

@leolanese
Created October 28, 2019 15:13
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 leolanese/c8d89efa81673b194bad567693ea45f3 to your computer and use it in GitHub Desktop.
Save leolanese/c8d89efa81673b194bad567693ea45f3 to your computer and use it in GitHub Desktop.
css-editor-bookmark-2
javascript: (function() { var elements = document.body.getElementsByTagName('*'); var items = []; for (var i = 0; i < elements.length; i++) { if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { items.push(elements[i]); } } if (items.length > 0) { for (var i = 0; i < items.length; i++) { items[i].innerHTML = ''; } } else { document.body.innerHTML += '<style>* { border: 1px solid red;}</style>'; } })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment