Created
March 13, 2019 17:52
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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