Remix.run Logo
Havoc 7 hours 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

taco_emoji 2 hours ago | parent | next [-]

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 an hour ago | parent | next [-]

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

pornel an hour ago | parent | prev [-]

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.

Mate4 7 hours ago | parent | prev | next [-]

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

gonzalohm an hour ago | parent [-]

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

MrMember an hour ago | parent | prev | next [-]

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

ivanjermakov 5 hours ago | parent | prev | next [-]

Don't get me started on scroll hijacking.

arielcostas 6 hours ago | parent | prev | next [-]

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

lebuin 5 hours ago | parent [-]

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

david_allison 4 hours ago | parent [-]

Thank you!

amadeuspagel 5 hours ago | parent | prev [-]

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 5 hours ago | parent [-]

> 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?