MozillaZine

userChrome.css not working on newly installed FF

User Help for Mozilla Firefox
Exoteeth
 
Posts: 40
Joined: August 5th, 2018, 1:40 am

Post Posted January 28th, 2019, 5:33 am

I have 2 PC's and I have never had a problem with CSS files on FF. I just put together another PC today with Windows 8.1, but userChrome.css does not work on the latest FF. It doesn't do anything at all. However, userContent.css (in the same folder) DOES work. How is this possible?

Grumpus

User avatar
 
Posts: 12152
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted January 28th, 2019, 6:14 am

Works fine as userChrome on all five of my systems???
Cashless society sacrifices independence, privacy and lastly liberty, encouraged by ignorance and villainy.

morat
 
Posts: 3164
Joined: February 3rd, 2009, 6:29 pm

Post Posted January 28th, 2019, 11:18 am

Here is how to open the profile directory.

* Help > Troubleshooting Information
* Open Folder

Example chrome\userChrome.css file:

Code: Select all
/* Firefox userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

* { background-color: orange !important; }

http://kb.mozillazine.org/UserChrome.css

Here is a similar thread: viewtopic.php?f=38&t=2220461

Gingerbread Man wrote:Windows hides file extensions by default. Novice users may end up mistakingly naming the file userChrome.css.txt without realizing it.

If the advice in the other thread does not help, then try restarting the browser after enabling the default theme and disabling all extensions in Tools > Addons.

http://kb.mozillazine.org/Standard_diagnostic_(Firefox)

Exoteeth
 
Posts: 40
Joined: August 5th, 2018, 1:40 am

Post Posted January 28th, 2019, 2:49 pm

Thanks for your help. Unfortunately, none of the above helps. I've dotted all the i's and crossed the t's on this. The userChrome.css file I'm using is the same file on two other PC's. I'm just going to delete this Windows build. It obviously did not go well.

dickvl

User avatar
 
Posts: 52596
Joined: July 18th, 2005, 3:25 am

Post Posted January 28th, 2019, 7:48 pm

What is the content of the userChrome.css file?

Did you make sure the file doesn't have a hidden .txt file extension (userChrome.css.txt) or a double .css file extension (userChrome.css.css) and that the file is a plain text file?

Franpa
 
Posts: 30
Joined: November 10th, 2011, 1:31 pm

Post Posted January 29th, 2019, 8:47 am

Firefox 65 has rendered some syntax out of date for the userChrome.css file. For example the CSS for having the Tab Bar appear below the the other Toolbars now needs new CSS code in order for it to work.

If you provide us with a copy of your CSS file we may be able to identify and potentially update it for you.
Computer specifications:
Windows 10 (1809) x64|Intel Core i7 920 @ 3.60GHz|ASUS P6T Motherboard|24GB DDR3 1500~ RAM|Nvidia Geforce 1070Ti 8GB|Corsair AX760 Power Supply

ineuw

User avatar
 
Posts: 433
Joined: March 19th, 2006, 4:17 pm

Post Posted January 29th, 2019, 2:11 pm

Franpa wrote:Firefox 65 has rendered some syntax out of date for the userChrome.css file. For example the CSS for having the Tab Bar appear below the the other Toolbars now needs new CSS code in order for it to work.
If you provide us with a copy of your CSS file we may be able to identify and potentially update it for you.



@Franpa I have this problem as well. With today's FF update to version 65.0, I lost the tabs below the address bar. Here are the contents of my userChrome.css

Code: Select all

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Tabs on bottom 1 stopped working with the Jan 29, 2019 FF update to version 65.0.
#navigator-toolbox toolbar:not(#nav-bar):not(#toolbar-menubar)
{
    -moz-box-ordinal-group:10}
    #TabsToolbar {-moz-box-ordinal-group:1000!important
}

*/

/* Tabs on bottom  2  does not work */
 
#TabsToolbar {
  -moz-box-ordinal-group: 2;
  border-bottom: 1px solid #888 !important;
}
#nav-bar{ border-top-width: 0px !important; }

Windows 10 Pro and Linux Mint 19 64 bit with the latest FF release

Exoteeth
 
Posts: 40
Joined: August 5th, 2018, 1:40 am

Post Posted January 29th, 2019, 4:20 pm

I figured out my issue, which is bound to be unique so it's not going to help anyone else. It turns out it had to do with the prefs file, which I substituted from another FF build. What happens is I didn't have FF setup the same as the other build, so the substituted prefs file caused a lot of functions to not work, including CSS. The only way you can sub a prefs file is if you have the same theme, extensions, etc. Then the subbed prefs file will work.

ineuw

User avatar
 
Posts: 433
Joined: March 19th, 2006, 4:17 pm

Post Posted January 29th, 2019, 5:02 pm

In my case I doubt if it's the Prefs.js file because I extracted and placed my personal choices in the User.js. But now that you mentioned it, it's better if another profile is created and the files compared.
Windows 10 Pro and Linux Mint 19 64 bit with the latest FF release

Exoteeth
 
Posts: 40
Joined: August 5th, 2018, 1:40 am

Post Posted January 29th, 2019, 5:12 pm

I had no idea until now that I installed Firefox 65. This is also probably why the prefs file didn't work right (i used the prefs file from the previous version). It also might explain why my CSS doesn't work right.

#titlebar-buttonbox-container no longer works in 65.

ineuw

User avatar
 
Posts: 433
Joined: March 19th, 2006, 4:17 pm

Post Posted January 29th, 2019, 5:57 pm

The Textpad compare feature shows that a lot of the old preferences do not exist in v65. In my case the difference could have been incremental because the old prefs.jf was copied from one version to the next starting with v60. So, FF can add but not delete a discontinued preference.

I can't understand why Firefox is making such a big deal out of the issue of tabs above or below the address bar.
Windows 10 Pro and Linux Mint 19 64 bit with the latest FF release

the-edmeister

User avatar
 
Posts: 32186
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted January 29th, 2019, 6:23 pm

ineuw wrote:I can't understand why Firefox is making such a big deal out of the issue of tabs above or below the address bar.


Users are making that a big deal. Mozilla got rid of the "tabs on bottom" feature in Australis Fx 29 as the default; it has been users who couldn't learn to live with that change and insisted on changing it via an extension initially and then with Quantum via userChrome code.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

ineuw

User avatar
 
Posts: 433
Joined: March 19th, 2006, 4:17 pm

Post Posted January 29th, 2019, 6:53 pm

Of course users are making it a big deal, it's a desired feature that users are missing. This is a very bad attitude on part of Mozilla who touted Firefox as a different kind of product from Microsoft Explorer and which encouraged user input.

I followed the same route as others who wanted their tabs below the address bar. My question is, why take it out in the first place what difference does that make? There are plenty of users who like that feature and they could have offered it both ways. If it was for some security concern, that I can understand, otherwise they are childish. In addition to this, Windows Firefox 65 blocks my attempts to any and all websites with the message that their certificates are invalid. I must use Vivaldi, or Firefox on Linux because it is still version 64.02.
Windows 10 Pro and Linux Mint 19 64 bit with the latest FF release

m.rumble
 
Posts: 8
Joined: January 29th, 2019, 1:55 pm

Post Posted January 30th, 2019, 4:25 am

Franpa wrote:Firefox 65 has rendered some syntax out of date for the userChrome.css file. For example the CSS for having the Tab Bar appear below the the other Toolbars now needs new CSS code in order for it to work.

If you provide us with a copy of your CSS file we may be able to identify and potentially update it for you.


Here's my CSS file (Tabs on Bottom no longer works, but the Status Bar is okay):

--------------------

/* Tab bar below Navigation & Bookmarks Toolbars For best results, show Title Bar or Menu Bar */ #nav-bar { /* main toolbar */ -moz-box-ordinal-group: 1 !important; border-top-width: 0 !important; } #PersonalToolbar { /* bookmarks toolbar */ -moz-box-ordinal-group: 2 !important; } #TabsToolbar { /* tab bar */ -moz-box-ordinal-group: 3 !important; }

/* Status-bar */
#browser-bottombox { height: 20px; border-top: solid 0px #505050; }
.browserContainer>statuspanel { left: 4px !important; bottom: 0px; transition-duration: 0s !important; transition-delay: 0s !important; }
.browserContainer>statuspanel>.statuspanel-inner>.statuspanel-label { margin-left: 0px !important; border: none !important; padding: 0px !important; }

window[inFullscreen="true"] #browser-bottombox { display:none !important; }
window[inFullscreen="true"] .browserContainer>statuspanel[type="overLink"] .statuspanel-label { display:none !important; }

#statuspanel #statuspanel-label {
-moz-appearance: none !important;
background-color: transparent !important;
border: 0px solid black !important;
}

#statuspanel {
background-color: transparent !important;
border: none !important;
bottom: 18px !important; /* adjust*/
height: 18px !important; /* adjust */
max-width: 30% !important; /* Change the value to suite your needs */
transition: none !important;
}

dfoulkes

User avatar
 
Posts: 22488
Joined: June 28th, 2008, 10:31 pm
Location: Mesquite, Nevada

Post Posted January 30th, 2019, 8:49 am

ineuw wrote:In addition to this, Windows Firefox 65 blocks my attempts to any and all websites with the message that their certificates are invalid. I must use Vivaldi, or Firefox on Linux because it is still version 64.02.


If this is still an issue you might want to peruse the Support area of this board... check some of the titles and you will note that others are seeing the same problem.. and there are some fixes in that dialog.
As you can see she's (The CAT) always alert and on the prowl for Meoware !!

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 16 guests