2016-09-26
A bookmarklet that console.log the element which has focus.
Paste the following code into a web page and open it in a browser, then put add the link to your favorites (drag the link in your tool bar).
<a href="<a href="javascript: console.log(document.activeElement);">Drag me in your favorites</a>
In Chrome, click Bookmarks->Bookmark Manager.
You should see a new tab with the bookmarks and folders listed.
Select the "Bookmarks Tab" folder on the left.
Click the "Organize" link, then "Add Page" in the drop down.
You should see two input fields. ...
Paste the javascript code below into the second field.
javascript: console.log(document.activeElement);