Hacker News new | ask | show | jobs
by bovine3dom 2081 days ago
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.