Hacker News new | ask | show | jobs
by hsbauauvhabzb 2084 days ago
I’m curious about your first paragraph but I don’t understand it, can you rephrase?

DOM elements which trigger JS event on click which are not identified by shortcut tools has always annoyed me, us much that I even tried to fix it myself so I’m very interested if tridactyl has

1 comments

Disclaimer: I didn't write this code.

This runs at page load - https://github.com/tridactyl/tridactyl/blob/5e8f94ff06bd5f14.... If you keep pulling that thread you'll find we use it to populate an array of elements with interesting event listeners on them. We can then put hints on those elements. We simply fire fake mouse events on those elements if they are chosen.

The code could definitely be improved - a major annoyance to me is that the JavaScript hints ignore CSS selectors.