Some websites override the behavior of the '/' key in Firefox. Normally this opens the incremental search toolbar at the bottom of the page. But on some websites it places the cursor in a search box on the site itself. How can I prevent this?
2 Answers
This Q is definitely addressed by the comments, so I'll rehash in a useful way:
You can disable gmail's shortcuts with Mail Settings
-> General
-> Keyboard Shortcuts
if that's interferring.
You can always use ctrl
+F
or just the '
(apostrophe character) too.
If you have further examples, put some out there, but I haven't found this behavior.
Useful links:
Firefox's help on searching
Syntax to tweak your about:config
data in Firefox here
-
2Another example: about every Confluence site in the world ;)– GressieCommented Oct 19, 2011 at 8:53
-
5Other examples: Twitter, Facebook (Messages), Rally. It's so absurd to me, because the only way anyone will discover this "feature" is by trying to use / for its usual purpose! The only people who are affected by this are the ones who are frustrated by it!– MikeFHayCommented May 13, 2013 at 10:23
-
This only addresses GMail. Doesn't answer the original, more general question Commented Sep 27, 2021 at 7:35
I got annoyed by a website taking over my slash yet again (youtube this time), went researching and landed here, saw there was no good answer, so decided to try and figure it out.
Turns out it's not actually that hard. Just install Greasemonkey (or equivalent js userscript addon), make a New user script, paste:
// ==UserScript==
// @name disable websites intercepting slash
// @description "/" slash should always bring up FF quickfind
// @run-at document-start
// @include *
// @grant none
// ==/UserScript==
document.addEventListener('keydown', function(e) {
e.keyCode==191 && e.stopImmediatePropagation();
return false;
}, true);
Save, go reload page in question.. hey, works for me. Created/tested on Firefox 97. YMMV.
Fair warning, this is barely tested, no idea if it'll muck with unrelated browser behavior. Will edit this post if it needs patching.
Mail Settings
->General
->Keyboard Shortcuts
which I have done (and possible @arjan has as well which is why he can't duplicate the issue either).