tridactyl icon indicating copy to clipboard operation
tridactyl copied to clipboard

tridactyl not working on some website.

Open dioobspm opened this issue 6 months ago • 3 comments

On almost all redhat documentation (like for example https://docs.redhat.com/en/documentation/red_hat_ceph_storage/8/html/8.0_release_notes/new-features#new-features-the-cephadm-utility) if the page in longer then you cannot scroll down to some point (I didn't find that point), but either you type ^F or scroll «normally» with the mouse, when reach some point the page go to the top again

dioobspm avatar Jun 10 '25 19:06 dioobspm

It seems that's from https://github.com/tridactyl/tridactyl/blob/50f19a34fc5f1006a7fccd93e35bca41eb011942/src/excmds.ts#L1320 the redhat page seems to fire synthetic load events so maybe an isTrusted check is necessary for that, or maybe better marking it as once.

thatsmydoing avatar Jun 12 '25 07:06 thatsmydoing

The docs seem to suggest it should be on window and not document instead https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event

thatsmydoing avatar Jun 12 '25 08:06 thatsmydoing

Replacing document with window does appear to fix this

Chic-Tweetz avatar Jun 12 '25 08:06 Chic-Tweetz