Hacker News new | ask | show | jobs
by bovine3dom 2085 days ago
FWIW - mostly for other interested readers - in Tridactyl we made hints which might be useless grey recently. They correspond to JavaScript events and are sometimes the only way to click a button.

If you want Vimium-style behaviour where these elements are not hinted you can just do `:bind f hint -J`.

We also have a Vimium-style theme which you can access with `:colours shydactyl`. The theme could do with some polishing if anyone's interested.

1 comments

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

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.