by Havoc 3 days ago

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

Mate4 3 days ago | [-1 more]

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

gonzalohm 3 days ago | [-0 more]

There is also an option in about:config: "dom.event.contextmenu.enabled" set it to false

taco_emoji 3 days ago | [-2 more]

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.

rat_on_the_run 3 days ago | [-0 more]

They can have a search button for that, not hijacking default browser functions. Often I want both kinds of search.

pornel 3 days ago | [-0 more]

Browsers can deal with very long documents. Ctrl+F works like a breeze on HTML that's 100K lines long.

Browsers only struggle to run heavy JS frameworks that wrap every line in a dozens of spans with dozens of handlers and mutate it all on every line scrolled.

ivanjermakov 3 days ago | [-0 more]

Don't get me started on scroll hijacking.

MrMember 3 days ago | [-0 more]

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

arielcostas 3 days ago | [-2 more]

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

lebuin 3 days ago | [-1 more]

You can also click the address bar and then press you shortcut. Should be faster and works for all shortcuts AFAIK.

david_allison 3 days ago | [-0 more]

Thank you!

amadeuspagel 3 days ago | [-1 more]

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.

Havoc 3 days ago | [-0 more]

> you can design your website however you want, except to make it more difficult to leave.

Who decreed that page navigation is in scope and search navigation is outside?