How do I increase the address bar dropdown menu size in FF42?
Hi,
In FF42, the size of the adress bar dropdown menu is limited to 6 items, and to get to more items I have to scroll down. In FF41 and earlier, this used to be 14 items. How do I get the behaviour of FF41 back? Or how do I set a custom value for the drop down menu size?
I have browser.urlbar.maxRichResults set to 50. I have a big monitor + a high mouse scrolls speed, and I really don't like the 6 item cutoff. I don't use bookmarks. Instead, I use the dropdown menu to get to my often visited sites. 14 directly visible entries works fine for me most of the time, but 6 is severely limiting, and scrolling is becoming quite a hassle. Also, it simply is a waste of screen space.
Weirdly enough I do get 14 entries when I freshly start Firefox. However very soon the drop down menu narrows to 6 entries and stays like that until I close and restart the browser.
I don't have the FastestFox-addon installed.
Thanks.
Solução escolhida
The rule I posted enlarges the maximum height, since I saw Firefox setting that to about half of the actual height. You can add a second line to override Firefox's value for the actual height:
#PopupAutoCompleteRichResult .autocomplete-richlistbox { max-height: 60em !important; height: 60em !important; }
And that also seems to solve the problem with the matches that show as you type which I hadn't noticed before has only half the height of the other list.
Ler esta resposta 👍 5Todas as respostas (7)
You could try overriding the standard length of 6 items using a custom style rule. You can apply custom style rules to Firefox's user interface using either the Stylish extension or a userChrome.css file. I use Stylish because it is easy to preview and experiment.
You can install Stylish from the Add-ons site: https://addons.mozilla.org/firefox/addon/stylish/
then:
(1) Select and copy this style block:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#PopupAutoCompleteRichResult .autocomplete-richlistbox {
max-height: 54em !important;
}
(2) Click the Stylish "S" icon on the toolbar, then Write New Style > Blank Style. This should open a new tab. To work with your rule in a floating window, right-click the tab > Move to New Window, then you can resize it to your pleasure.
(3) In the large editing area, paste the rule. Then click Preview to see the effect. if it works, go ahead and give it a name and save it.
Note: In this case, the rule does not seem to affect existing windows, but if you click Preview and then launch a new window (Ctrl+n), the menu should show 14 items without scrolling.
Since fonts sizes may differ, if you find that you are only seeing 13 items, you can adjust the 54em (e.g., try 55em) (1 em is approximately 16 pixels).
Hello jscher2000,
Thank you for your reply.
Could you please tell me what code I would have to add to my userChrome.css to get this tweak working? I'd rather not clutter up my toolbar or run another add-on if I don't have to. I already have the userChrome.css file (and use it to suppress certain buttons and menu items that aren't otherwise customizable).
Greetings.
Hi Vlammetje, @namespace only needs to appear at the top of userChrome.css, so you would use the rest of the style block (the other 3 lines) in your file.
I added the code and it seems to work. I'll need to test longer to be sure.
I also tried values of 60em and 80em to utilize more screen space, but while the drop down menu indeed very briefly gets even longer upon opening, it then immediately snaps back to the 54em height. Oh well, 54em is plenty and gives me 14 entries :)
However, when I then type a letter into the address bar to get url's containing it, the dropdown results window again snaps back to the 6 entries and a scroll bar. Would you know of a way to also increase the size of that menu?
Many thanks for the help so far.
Solução escolhida
The rule I posted enlarges the maximum height, since I saw Firefox setting that to about half of the actual height. You can add a second line to override Firefox's value for the actual height:
#PopupAutoCompleteRichResult .autocomplete-richlistbox { max-height: 60em !important; height: 60em !important; }
And that also seems to solve the problem with the matches that show as you type which I hadn't noticed before has only half the height of the other list.
Yes. I've added the second line and set both to 61em for now, giving me neatly 16 results visible for both. So much more useful!
Thank you!
You may also use Classic Theme Restorer add on for this - it has an appropriate option to display as many entries as it can.