Skip to content

Instantly share code, notes, and snippets.

@finwe
Created February 6, 2024 08:06
Show Gist options
  • Save finwe/ee914c187c02f3288a1a719eba327521 to your computer and use it in GitHub Desktop.
Save finwe/ee914c187c02f3288a1a719eba327521 to your computer and use it in GitHub Desktop.
Firefox userChrome.css
/*
Firefox 57-70 users: https://www.jeffersonscher.com/gm/url-bar-tweaks.html
You can copy/paste into a userChrome.css file, see https://www.userchrome.org/
*/
/* Remove " - Visit" or " - Search with" bar in the drop-down */
#PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"],
#urlbar-results #urlbarView-row-0,
#urlbar-results div:first-of-type[type="search"]
{
display:none !important;
}
/* Hide line for searching sld.tld below "Visit" Line */
#PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"] +
richlistitem[actiontype="searchengine"] {
display:none !important;
}
#PopupAutoCompleteRichResult .autocomplete-richlistbox,
#urlbarView-results, #urlbar-results {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
/* Display drop-marker only when URL bar is hovered (Firefox default) */
/* Set max-height for items visible without scrolling */
#PopupAutoCompleteRichResult .autocomplete-richlistbox,
#urlbarView-results, #urlbar-results {
height: unset !important;
max-height: calc(30.5px * 10) !important;
}
/* Default drop-down width */
/* Default font sizes */
.autocomplete-richlistitem[selected=true],
.urlbarView-row[selected] {
background-color: Highlight !important;
}
.autocomplete-richlistitem[selected=true] .ac-title,
.ac-title[selected],
.autocomplete-richlistitem[selected=true] .ac-url,
.ac-url[selected],
.autocomplete-richlistitem[selected=true] .ac-action,
.ac-action[selected],
.autocomplete-richlistitem[selected=true] .ac-separator,
.ac-separator[selected],
.urlbarView-row[selected] .urlbarView-title,
.urlbarView-row[selected] .urlbarView-secondary,
.urlbarView-row[selected] .urlbarView-title-separator {
color: HighlightText !important;
}
/* Use default text matching style */
/* Prevent excess indenting of icons in Photon */
#PopupAutoCompleteRichResult .autocomplete-richlistitem [anonid="type-icon-spacer"],
#urlbar-results .autocomplete-richlistitem [anonid="type-icon-spacer"] {
display: none !important;
}
#PopupAutoCompleteRichResult,
#urlbar-results {
--item-padding-start: 0 !important;
--item-padding-end: 0 !important;
}
/* Ability to scroll in Fx57 */
#PopupAutoCompleteRichResult .autocomplete-richlistbox > scrollbox,
#urlbarView-results, #urlbar-results {
overflow-y: auto !important;
padding-right: 3px !important;
}
#PopupAutoCompleteRichResult .autocomplete-richlistbox {
padding-right: 0 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment