logoalt Hacker News

Havoclast Tuesday at 9:57 AM6 repliesview on HN

Great. Can we do ctrl-f search hijacking next.

So jarring when websites replace core functionality with their own broken crap because they think they’re special.

Some also seem to hijack right click menu now


Replies

Mate4last Tuesday at 10:07 AM

Firefox allows you to bypass right click hijacking by holding shift before pressing right click.

show 1 reply
taco_emojilast Tuesday at 3:03 PM

CTRL+F hijacking is necessary in some cases when apps are not displaying the full text that the user would expect to search. E.g. when there's a 10K-line code file and the UI is not loading the whole thing into DOM, but the user would expect a "find" to search that whole code file.

show 2 replies
ivanjermakovlast Tuesday at 11:23 AM

Don't get me started on scroll hijacking.

MrMemberlast Tuesday at 3:28 PM

Github hijacks '/' and it's really annoying, it gets me all the time.

arielcostaslast Tuesday at 10:26 AM

Some also hijack the shortcuts to open devtools (like F12), so you have to find the option in the browser menu itself

show 1 reply
amadeuspagellast Tuesday at 11:29 AM

This misses the point. Websites are allowed to replace default keyboard shortcuts for a reason. There are only a few exceptions to this, like Ctrl+W. In other words, you can design your website however you want, except to make it more difficult to leave. This is an implementation of the same philosophy.

show 1 reply