GENERAL discussion, feedback, questions belong here! (v14)
Make sure you have updated your configuration to the most recent version of this projects files and are using the latest version of the "options" required by your Firefox version >before< reporting problems!
Continued from https://github.com/Aris-t2/CustomCSSforFx/issues/3, https://github.com/Aris-t2/CustomCSSforFx/issues/41, https://github.com/Aris-t2/CustomCSSforFx/issues/88, https://github.com/Aris-t2/CustomCSSforFx/issues/109, https://github.com/Aris-t2/CustomCSSforFx/issues/133, https://github.com/Aris-t2/CustomCSSforFx/issues/163, https://github.com/Aris-t2/CustomCSSforFx/issues/189, https://github.com/Aris-t2/CustomCSSforFx/issues/211, https://github.com/Aris-t2/CustomCSSforFx/issues/241, https://github.com/Aris-t2/CustomCSSforFx/issues/273, https://github.com/Aris-t2/CustomCSSforFx/issues/308, https://github.com/Aris-t2/CustomCSSforFx/issues/368 and https://github.com/Aris-t2/CustomCSSforFx/issues/404
Instead of opening new "issues" for general talk we can use this area for discussions, feedback and questions. Open new "issues" for real bugs and problems.
Custom JS scripts to restore more classic features https://github.com/Aris-t2/CustomJSforFx
Things this project will not target/recreate
- a CTR like plugin/application to generate ready-to-use CSS
- curved tabs (thanks those are finally gone!)
- old complete themes
Things not possible with CSS
- more toolbars like add-on/status bar (CSS can not create new toolbars)
- displaying full sized status popup below window content is possible
- bookmarks toolbar at windows bottom is possible (simulated addon-bar)
- new buttons (CSS can not create new buttons)
- additional menuitems (CSS can not create new items)
- custom/new/different functions for buttons/menuitems/menus
- activity indicator (see 'custom JS scripts')
- preference/options window
- additional location bar
- favicon in location bars identity box (see 'custom JS scripts')
- moving menubar items to a different toolbar
- restart button (see 'custom JS scripts')
- ... many more
Since we were talking about compact stuff recently, I wanted to share another piece of code from my my_userChrome.css file:
/* Hide lines with something else than the id in login popup */
#PopupAutoComplete richlistbox richlistitem div div :not(.line1-label) {
display: none !important;
}
On a site with multiple login, it get rid of that stupidly repeating "From this website" line below each login entry. Not sure what would make that line say something else, maybe a feature I don't use, but maybe that code could fit somewhere?
Ps: I thought I already shared that, but a search gave nothing. But I wonder if the github search really work that well to begin with. 🤔
Never though about removing that line, but its great we can achieve it using CSS.
About the Github search. Once a thread gets too long, entries get hidden and you have to click "Load more..." link to show them again. Search won't find the hidden stuff, so I think this is what happened to your post.

So I've been getting these kind of "popups" since I updated to Firefox 92.0, happens on sites like "Spotify, Apple, Outlook, etc.
https://i.imgur.com/P0mZtC8.png https://i.imgur.com/KcXuj4d.png
I was wondering if these can be completely hidden and removed from happening, or is this not even CSS stuff anymore?
So I've been getting these kind of "popups" since I updated to Firefox 92.0, happens on sites like "Spotify, Apple, Outlook, etc.
https://i.imgur.com/P0mZtC8.png https://i.imgur.com/KcXuj4d.png
I was wondering if these can be completely hidden and removed from happening, or is this not even CSS stuff anymore?
Do you use any kind of adblocker like ublock Origin, I would think that would take care of the second one (that seems like spam). Not sure on the DRM one.
Yes, uBlock Origin, but these don't seem to be your typical popups like from ads, more like notifications from Firefox. Like when you go and install an "Add-on" and a small pop up will occur, asking to allow or deny.
FYI, I was able to solve this with two about:config pref's.
DRM popup;
browser.eme.ui.enabled to false
Mailto popup;
network.protocol-handler.external.mailto to false
So I've been getting these kind of "popups" since I updated to Firefox 92.0, happens on sites like "Spotify, Apple, Outlook, etc.
https://i.imgur.com/P0mZtC8.png https://i.imgur.com/KcXuj4d.png
I was wondering if these can be completely hidden and removed from happening, or is this not even CSS stuff anymore?
Though you already found a solution, yes, it probably could have been hidden by CSS, if those have an id and/or other properties than can be used to target with css (see the id finding part of the readme) I myself have this:
/* Hide the "update available" popup */
#appMenu-notification-popup {
display: none !important;
}
To no longer be bothered with Firefox reminders that it can be updated. Though I haven't seen that popup for so long I can't tell for sure if my css is still working, or if the popup was just removed at some point 😛
Unless I missed - a lot, does customCSSforFx have any code to change heights of urlbar-container , urlbar-input-container & matching searchbar elements? Some of the code I tried to use as root and / or like the example below. Since this isn't a feature of CustomCSS (I guess), maybe someone besides Aris could point me in the right direction.
I'm looking mostly to chg the heights of entry field(s) for URL & Search input containers, and the 40px TALL #urlbar-container and #search-container. Everything "Photon" is turned off AFAIK- nothing expands or jumps out.
Mozilla has set the "--urlbar-container-height: 40.00px" as root & nothing I've found online or thought of myself, has overridden the 40px.
(See screenshot) I was able to chg heights of the INPUT containers (url & search), but NOT the outer 40px container (see screen).
Code below is from Mozilla support. I'm not sure why (cor-el) did some things, like repeat "#urlbar-input-container" in succession, but he is usually right. https://support.mozilla.org/en-US/questions/1284030
#urlbar[breakout],
#urlbar[breakout][breakout-extend] {
--urlbar-height: 28px !important;
--urlbar-toolbar-height: 30px !important;
width: 100% !important;
top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
left: 0 !important;
}
#urlbar[breakout][breakout-extend] > #urlbar-input-container,
#urlbar-input-container {
height: var(--urlbar-height) !important;
width: 100% !important;
padding-block: unset !important;
padding-inline: unset !important;
transition: none !important;
}
#urlbar[breakout][breakout-extend] > #urlbar-background {
box-shadow: 0 1px 4px rgba(0,0,0,.05) !important;
animation: none !important;
}
Modified April 11, 2020 at 2:11:24 PM PDT by cor-el

@bendover22 : I'm not sure we would be talking about the same thing, but in my case, I had an issue of nav-bar having too much height, causing empty space above and below, and the separators between the url bar and search bar being stretched vertically.
And same experience, css was powerless, so I eventually ended up using my custom js changes file, that work along CustomJSforFx enabled scripts, with the following code:
///
/// Change navbar height because too big otherwise
///
try {
let nav_bar = document.getElementById("nav-bar");
nav_bar.setAttribute("height","28px");
}
catch(e) { console.log("height setting failed"); console.log(e); }
To recap:
- the above is NOT CSS
- I'm interested if CSS ever become able to do something about those components again, but it failed for me
- Custom javascript may be the solution for you too, but once again, as you're not targeting "nav-bar", maybe we're not talking about the same thing
- If the only solution is javascript, it may be better to start discussing it on the other project (see link above)
@BoomerangAide - "What is in a name? Would not a nav-bar by any other name be just...." W.S. We are talking about the same thing (essentially). Thanks for the code. Do you have to enable one or ? many files from CustomJSforFx? If so, which one(s)? Do you then have to comment out certain parts that change things you don't want changed?
Here's what I found to change height of urlbar-container; search-container; and the text entry containers.
:root {
--urlbar-container-height: 34px !important; }
:root {
--urlbar-min-height: XXpx !important; } /*optional*/
#urlbar-container, #search-container {
padding-block: 1px !important; } /*** This puts 1px padding ABOVE / BELOW the url & search input ***/
Decide what height you want for the urlbar-container ("text entry field") & search-container (the tallest part of this toolbar). URL & Search containers must be same ht., so the toolbar's bottom edge is even .
The magic bullet to override Fx's 40px H urlbar-container (& search-container)is shown. In my_userChrome.css, "must define" the fixed ht of url & search containers, < 40px:
If you need to change height of URL & Seach bars (input area) from the default (32px for Normal density), you can define it the same way as --urlbar-container-height:
I found I needed to override the Moz value for padding-block:4px; on urlbar-container, search-container, or the url-container extends past the input containers more than I wanted. Adjust values as desired. Hope there are no errors - working on my desktop.
Hi @Aris-t2 Maybe I am mistaken, but some time ago there was a module to change Bookmark folder icon color to the one you like (vial fill css rule). I tried to find one within the latest files, but the only thing I have found is the complete replacement for the Bookmark icon.
Maybe you can help with the following...
I would like to replace and recolor the new Bookmark folder icon (chrome://global/skin/icons/folder.svg) that appears in the Bookmarks Menubar, Toolbar, and Places/History (basically everywhere it is present)...
I tried to reverse engineer the mentioned module but got a mixed results (messed up Bookmark Gear and tag icons)
Thank you in advance
https://github.com/Acid-Crash Depending on what you want - one color of folder, to use everywhere a typical, small folder icon is used? Like in Fx 92, the plain "folder" image is just a black outline of a folder shape. No color fill, other than the BG color.
I think what you may want is something like /chrome/css/generalui/bookmark_icons_colorized.css If you search the customcssforFx package's "userChrome.css" file , you'll find several for "bookmarks" & possibly "folders."
The former has more than just a colored folder icon. If you don't like the color of the folder icons (like yellow), you can backup / save the orig. image under the customcss "image" folder, then either change the color in another drawing or graphic editor app. Then save it to the images folder, using the SAME name as the original. Or find images already colored & put them in the proper path in customcssforFx.
What ever OS you use, get a "text editor" w/ a GOOD search function, that shows results (in partial sentences, for context), the line # where located, etc. You can find what you're looking for MUCH faster. For Windows, Notepad++ - very popular; (free, open source) was one I used before moving to Linux. For Linux, there are many. One w/o too steep a learning curve, but still lots of features (& excellent search / find tool) is Geany, that I've used several yrs. Both have good help sites / forums and / or mailing list, where help usually comes quickly.
Regardless, I suggest getting a dark theme for the text editor. Black or V dark background & as bright of syntax coloring as you want (say for CSS files). Much easier to see for search thru a file, or make simple changes, rather than white / nearly white BG. Easier on the eyes.
@bendover22
I think what you may want is something like /chrome/css/generalui/bookmark_icons_colorized.css
I know about this module, it replaces every icon within Bookmarks (folder, tag, gear).
I am interested only in replacing the bookmark folder icon (I have the needed SVG file).
As mentioned earlier, I tried to reverse engineer bookmark_icons_colorized.css but did not manage to do it right (tag and gear icon are also become replaced with folder icon)
As for the editing the icon, choosing the text editor, I am aware of this matter.
does anyone know how to remove the "Find in text" placeholder text in the findbar?
https://github.com/Aris-t2/CustomCSSforFx/issues/417#issuecomment-925407479 @bendover22 : we must be going for a different effect after all. Your code has no effect over my situation:
Not resized forcefully through javascript

Resized forcefully through javascript

I hope you managed to get things to look like how you wanted. Note: this is on Firefox 91, maybe some things would get unlocked on another more recent version.
Hello everyone. Is there any way I can make the appmenu completely square?

@bendover22 @BoomerangAide
This worked for me without breaking other code. Not sure, if it interferes with anything else.
:root {
--urlbar-container-height: 40px !important;
--urlbar-min-height: calc( var(--urlbar-container-height) - 2px ) !important;
}
@Acid-Crash This will override folder icons with a custom SVG image, that can be colorized:
toolbarbutton.bookmark-item[container],
.bookmark-item[container] .menu-iconic-left .menu-iconic-icon,
.bookmark-item[query][hostContainer],
.folder-icon,
#editBMPanel_chooseFolderMenuItem .menu-iconic-icon,
treechildren::-moz-tree-image(title, container),
treechildren::-moz-tree-image(title, query, hostContainer) {
-moz-image-region: rect(0px, 16px, 16px, 0) !important;
-moz-context-properties: fill !important;
list-style-image: url("chrome://browser/skin/developer.svg")!important;
fill: red !important;
}
toolbarbutton.bookmark-item[container][open],
.bookmark-item[container][open] .menu-iconic-left .menu-iconic-icon,
treechildren::-moz-tree-image(title, open),
.bookmark-item[query][hostContainer][open] {
-moz-image-region: rect(0px, 16px, 16px, 0) !important;
-moz-context-properties: fill !important;
list-style-image: url("chrome://browser/skin/developer.svg")!important;
fill: blue !important;
}
@mimecry You can not hide the placeholder using CSS.
@PorigonZ
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button {
border-radius: 0 !important;
}
@Aris-t2 i managed to hide it using
input.findbar-textbox::placeholder {opacity: 0 !important;}
@Aris-t2
This will override folder icons with a custom SVG image, that can be colorized:
Tried this version, unfortunately it also affects other Bookmark-related icons:
- History > clock icon
- Tags > Tag icon
- All bookmarks > Star icon
- Bookmark Toolbar + Bookmark menu icons
- Last visited, Most visited > Gear icon
Also, the every subfolder icon (for example Globe icon) color changes for the opened folder, meaning, that it is also partially affected
I do understand that this is a lot of work, but maybe you can still look at this...

I don't have version 92 or above, but I think the trick is the elements you want changed would be .bookmark-item[container] and .bookmark-item[container][open] or an equivalent, and the elements you want unchanged are also it, and something more.
Either you need to find every "something more", and allow them to set themselves on their usual/default value, or maybe you need to find something common to all you want to exclude (data-l10n-idmaybe?) and exclude it with the css rule (not sure which one would work...if one work).