News for hackers. Stuff that matters.
Re:A new spam policy for "back button hijacking" by Havoc on Tuesday April 14, 2026 @05:57AM (#47763463)
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

Re:A new spam policy for "back button hijacking" by Mate4 on Tuesday April 14, 2026 @06:07AM (#47763555)
Firefox allows you to bypass right click hijacking by holding shift before pressing right click.
Re:A new spam policy for "back button hijacking" by gonzalohm on Tuesday April 14, 2026 @11:48AM (#47767215)
There is also an option in about:config: "dom.event.contextmenu.enabled" set it to false
Re:A new spam policy for "back button hijacking" by ivanjermakov on Tuesday April 14, 2026 @07:23AM (#47764139)
Don't get me started on scroll hijacking.
Re:A new spam policy for "back button hijacking" by amadeuspagel on Tuesday April 14, 2026 @07:29AM (#47764202)
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.
Re:A new spam policy for "back button hijacking" by Havoc on Tuesday April 14, 2026 @07:46AM (#47764360)
> 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?

Re:A new spam policy for "back button hijacking" by arielcostas on Tuesday April 14, 2026 @06:26AM (#47763701)
Some also hijack the shortcuts to open devtools (like F12), so you have to find the option in the browser menu itself
Re:A new spam policy for "back button hijacking" by lebuin on Tuesday April 14, 2026 @07:19AM (#47764099)
You can also click the address bar and then press you shortcut. Should be faster and works for all shortcuts AFAIK.
Re:A new spam policy for "back button hijacking" by david_allison on Tuesday April 14, 2026 @08:44AM (#47764946)
Thank you!
Re:A new spam policy for "back button hijacking" by taco_emoji on Tuesday April 14, 2026 @11:03AM (#47766575)
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.
Re:A new spam policy for "back button hijacking" by rat_on_the_run on Tuesday April 14, 2026 @11:48AM (#47767220)
They can have a search button for that, not hijacking default browser functions. Often I want both kinds of search.
Re:A new spam policy for "back button hijacking" by pornel on Tuesday April 14, 2026 @11:47AM (#47767205)
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.

Re:A new spam policy for "back button hijacking" by MrMember on Tuesday April 14, 2026 @11:28AM (#47766923)
Github hijacks '/' and it's really annoying, it gets me all the time.