![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
How to remove first search suggestion?
Hello
I've been looking around and I couldn't find anything that would help. So, the problem is with the search suggestions. I can delete every suggestion except for the first one (with the "-- open site" text). I've tried shift+del, ctrl+del, hovering mouse over that suggestion, moving highlight with the cursors, etc. with no luck. I know that I can remove urls from the history and I've tried that. It's somewhat working, because I had to delete multiple urls several times.
So, the question is, how to remove first suggestion on the list without the need to dig out through the history?
All Replies (6)
press backspace
That is a default suggestion that you can't remove this via built-in means.
Add code to the userChrome.css file below the default @namespace line.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ /* Remove " - Visit" or " - Search with" bar in the drop-down */ #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"], #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"], #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"] {display:none !important;}
- create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
- use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
- paste the code in the userChrome.css file in the editor window
- make sure that the userChrome.css file starts with the default @namespace line
- make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.
- Help -> Troubleshooting Information -> Profile Directory:
Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder - http://kb.mozillazine.org/Profile_folder_-_Firefox
This will hide every first suggestion, won't it?
Well .. in that case, maybe there's other way to deal with this? Firefox is using sqlite database, right? So, if I'd edit this database and change priority/score/whatever column, then I could get rid out of those unneeded suggestions?
This will only hide the special suggestion that Firefox shows as the first item. That are items that start with Search or Visit depending what Firefox thinks applies. All other suggestions that are coming from the setting in "Options/Preferences -> Content" are still shown. If you want to keep either of the suggestions that are hidden by this code then remove the corresponding line or comment the line out by placing it in a comment block (/* comment */).
Don't get me wrong. Hiding is an option, but I don't like to use methods that only covers the main problem.
So, everything boils down to the places.sqlite and moz_hosts / moz_places. It looks like moz_hosts are being used by the suggestion, but all the statistics are being done on the moz_places table. Fine. One thing that bothers me is that: the page I'd like to get as first suggestion has got 200 visits and 4800 frecency. The "wrong suggestion" has got 3 visits and 6000 frecency. How come? Is there a formula for this value specified somewhere on mozilla support website?
Anyway, right now the only way to make sure that the proper page will be suggested as first option is to multiply visits by 10 (or so). This way recency will get higher that the other urls starting with the typed letters.
Muudetud
There is a Extension called Fat-Free Firefox See if that does what you would like.
Please let us know if this solved your issue or if need further assistance.