link-hijacker
link-hijacker copied to clipboard
Does not work with Shadow DOM
Because Shadow Roots cause event retargeting, link-hijacker is unable to find the source a element which triggered the event.
The best alternative appears to be composedPath which Edge sadly only supports in version 79+. It could be good enough, still better than not supporting shadow roots in any way at all.
I would be happy to submit a PR.
Any other suggestions?