Skip to content

Instantly share code, notes, and snippets.

@sandipchitale
Created March 13, 2019 17:52
Show Gist options
  • Select an option

  • Save sandipchitale/e65a26f591fd5029e1c06c88126efd26 to your computer and use it in GitHub Desktop.

Select an option

Save sandipchitale/e65a26f591fd5029e1c06c88126efd26 to your computer and use it in GitHub Desktop.
Highlight elements with id's (or other selectors), display in table form in Chrome Devtools Console.
console.table(([].slice.call(document.querySelectorAll("[id]"))).map((e) => { e.style.outline = '1px solid red'; e.title = (e.id + ' ' + e.title); return {'id': e.id, 'element': e} }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment