2 ms·
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 sh
by hsbauauvhabzb 6y 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
- bovine3dom 6y agoDisclaimer: I didn't write this code. This runs at page load - https://github.com/tridactyl/tridactyl/blob/5e8f94ff06bd5f143732f2dabd32b08dabf1e65a/src/content.ts#L194 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.