3 ms·
Disclaimer: I didn't write this code. This runs at page load - https://github.com/tridactyl/tridactyl/blob/5e8f94ff06bd5f143732f2dabd32b08dabf1e65a/src/content
by bovine3dom 6y ago
Disclaimer: 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.