Skip to content

Instantly share code, notes, and snippets.

@MarcL
Created April 14, 2021 14:16
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 MarcL/6666006cdfa2ee5e812ce6c63ce3907a to your computer and use it in GitHub Desktop.
Save MarcL/6666006cdfa2ee5e812ce6c63ce3907a to your computer and use it in GitHub Desktop.
Outline DOM elements for debugging - run in your browser console
[].forEach.call($$("*"), function(element) {
element.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment