Thanks for answering. Did you test this on producthunt?
Apparently there are sites (ie: producthunt) where this should not work because not every click event is a click event. Sometimes there are mousedown and other events such as virtual dom based events as well.
Sounds like there would need to be bindings for each event, with associated un-bindings for each event as well. Probably doesn't change my solution too much, just needs to be applied to more things.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for answering. Did you test this on producthunt?
Apparently there are sites (ie: producthunt) where this should not work because not every click event is a click event. Sometimes there are
mousedownand other events such as virtual dom based events as well.Nah, just did a rudimentary test in my console.
Sounds like there would need to be bindings for each event, with associated un-bindings for each event as well. Probably doesn't change my solution too much, just needs to be applied to more things.