You are here

userChrome.css doesn't work on 5.0

3 posts / 0 new
Last post
rayray
Offline
Last seen: 12 years 10 months ago
Joined: 2007-07-11 09:18
userChrome.css doesn't work on 5.0

i install FirefoxPortable_5.0_English.paf.exe on c:\FirefoxPortable,
run FirefoxPortable.exe at once and exit,
create C:\FirefoxPortable\Data\profile\chrome\userChrome.css.

userChrome.css is saved on unicode, contains below

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#browser { -moz-box-direction: reverse;}

Error Console:
Could not read chrome manifest file 'C:\FirefoxPortable\App\firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest'.
Warning: Expected ',' or '{' but found '@'. Ruleset ignored due to bad selector.
Source File: file:///C:/FirefoxPortable/Data/profile/chrome/userChrome.css
Line: 1
Warning: Selector expected. Ruleset ignored due to bad selector.
Source File: file:///C:/FirefoxPortable/Data/profile/chrome/userChrome.css
Line: 2
Warning: Unexpected end of file while searching for closing } of invalid rule set.
Source File: file:///C:/FirefoxPortable/Data/profile/chrome/userChrome.css
Line: 3
Warning: XUL box for _moz_generated_content_after element contained an inline #text child, forcing all its children to be wrapped in a block.
Source File: chrome://browser/content/browser.xul
Line: 0

i want to move sidebar to the right side.
this userChrome.css works fine on FirefoxPortable3.5.19.
userContent.css seems to work fine on FirefoxPortable5.0.

thanks

vasa1
Offline
Last seen: 12 years 2 months ago
Joined: 2010-06-04 01:50
Your code works

on Aurora (which will be Fx 6) when I use it via Stylish.

I stopped using userChrome.css because Stylish lets you see changes without having to restart each time.

Sorry that I can't help with your specific question of userChrome.css and Fx5 portable.

vasa1
Offline
Last seen: 12 years 2 months ago
Joined: 2010-06-04 01:50
Works with Fx5 portable as well ...

I now tried your code with portableapps.com Fx5 (on Win XP SP3) and it works just fine though I did find a couple of errors in the Error Console.

A couple of differences that may or may not be relevant:
My install path is:
E:\PortableApps\FirefoxPortable

My userChrome.css has this location:
E:\PortableApps\FirefoxPortable\Data\profile\chrome

There is nothing in the userChrome.css file except this (= what you provided):
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#browser { -moz-box-direction: reverse;}

I have side-bars off by default.
With the userChrome.css file in place, I opened Fx5 and immediately checked the Error Console. The two errors are below:

Could not read chrome manifest file 'E:\PortableApps\FirefoxPortable\App\firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest'.

Warning: XUL box for _moz_generated_content_after element contained an inline #text child, forcing all its children to be wrapped in a block.
Source File: chrome://browser/content/browser.xul
Line: 0

I cleared the console and closed it (the console, not the browser). I then went to Alt, View, Sidebars, Bookmarks and the bookmarks sidebar opened on the right of the screen as you require.

I looked at the Error Console. At this point, there were no errors.

Hope this helps.

Log in or register to post comments