In Linux, clicking the middle mouse button (or mouse wheel) pastes the most recently highlighted text from any application. This is useful; however, it has an extremely-annoying side-effect in Firefox. Whenever I middle-click outside of entry fields, I get an annoying pop-up that says: “The URL is not valid and cannot be loaded.” This frustrates me to no end. It usually happens when I accidentally nudge my mouse and miss middle-clicking a link in order to open it in a new tab.
So, why is it doing this? Turns out that, by default, Firefox for Linux allows you to use this middle-click to paste functionality to allow you to navigate to a highlighted URL simply by middle-clicking non-editable portions of the page. When an invalid URL is the result of the paste, the annoying popup appears.
Today, I found out how to get rid of this annoyance.
Open a new tab in Firefox and navigate to “about:config”. This will take you to an interface that allows you to tweak and configure very specific functionality of Firefox.
In the “Filter:” text box, enter “middlemouse.contentLoadURL”. This should present a single entry that lists the option as having a value of “true”. Simply double-click the listing to change the value to “false”. The effect is instantaneous.
Now when you middle-click outside of editable areas in Firefox, it will no longer try to navigate to a URL. This change only modifies the navigation to URL functionality; the middle-click to paste in editable areas still functions.
If you like the middle-click to scroll functionality found in other browsers/operating systems, then search for “general.autoScroll” and double-click the listing to change it to true. Now you can middle-click to initiate scrolling.
Did I help you?
Thank you for the fix. Really annoying since upgrading to 3.5.
I’m glad to share it.
By the way, I really like your blog. You have a wealth of great stuff there.
hey can you tell it for pc
Sorry. I don’t know what may be different about a Windows system to give you instructions on how to fix it there.
Excellent 🙂 Didn’t think of checking about:config myself yet. Works on FreeBSD/Gnome as well. Thanks
Glad to help.
Thank you so much, this “Feature” has been a constant pain in my…
Cheer
Tony
I’m happy to share the wealth. 🙂
This has been a huge annoyance of mine since.. forever! Thanks a TON for the fix. In fact, I’m so thankful, that I even took the time to write a comment saying so. 😀
You’re welcome ak. Enjoy your middle click. 🙂
Thanks a bunch! That is one really annoying issue….
Glad to help Matt.
this has pissed me off to no end.
if I were emperor, I would have already had EVERYONE involved in the problem, executed.
period.
thanks for the fix.
Glad to help arg.
THANK YOU! This has been annoying the sh it out of me!!!!!!!
I can confirm that this works in OpenSuse 11.2 in Firefox 3.5.4.
I really think that this is an annoying bug in Firefox, and this should be fixed by default. Mozilla should be ashamed.
THANK YOU. this is the most annoying thing ever.
Thanks for sharing. This has been bothering me for a long time.
Yes, me too – thanks for sharing this. So annoying.
How about if nothing is selected – don’t paste anything? The people working of firefox the past two years are total idiots. Too much time spent on junk like personas and too little of stability/usability.
I’m sorry, I must be very slow. I can’t figure out how to get to about.config. Do I type this in run box? Is it under Options?? Help!!
Ok I figured it out but my settings were already “false” so this did not resolve my issue. If you have other suggestions, please let me know.
thanks!
Unfortunately, no, I don’t have any other suggestions. This change has always worked on my installations. It could be some other configuration or setting changes that you have on your machine that is causing the issue to remain; however, I don’t know what those changes may be.
Get rid of Norton toolbar… problem solved.
Sounds like you are experiencing a similar but different issue as Norton Toolbar doesn’t work on Ubuntu.
hey, that worked perfectly. thanks for decreasing my annoyance level twice!
Thanks! I don’t know why these options are not the default.