some userChrome.css settings don't works
9 posts
• Page 1 of 1
Hi,
I deploy Firefox over local network for about 400 computers. I use userChrome.css to hide some functionnality or buttons like Updates tab in Options > Advanced. It works in FF 45.0.1 ESR but don't works in FF 53.2.0 ESR. See my userChrome.css file : /* * Do not remove the @namespace line -- it's required for correct functioning */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ /* * Make all the default font sizes 20 pt: */ *{ font-size: 15pt !important; } /* Remove access to user interface elements that are not suitable for application virtualization */ /* Options - Advanced - General - System Defaults */ #systemDefaultsGroup { display: none !important; } /* Options / Advanced / Update / Firefox updates group box */ #updateApp { display: none !important; } /* Help - About - Check for Updates button */ #updateButton { display: none !important; } Green option to grow police (for the test) works, but options in red color don't works. My userChrome.css file is located in C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\9bp83g10.default\chrome. Is there some userChrome options deprecated in FF 50+ ? has anyone succeeded to hide Updates features in Firefox +50 with userChrome.css ? Thanks. ![]() Moving this to Firefox Support...
Ancient Amateur Astronomer
Win-7-HP/Intel® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-57.0-61.0-62.0/T-bird-2.0.0.24/SnagIt-v10.0.1/MWP-7.11.0. (Always choose the "Custom" Install.) See:
https://dxr.mozilla.org/mozilla-esr52/s ... vanced.xul https://dxr.mozilla.org/mozilla-esr52/s ... Dialog.xul It would be better to lock related prefs via the mozilla.cfg file rather than hiding button and specific sections. See Configuration: https://developer.mozilla.org/en-US/Fir ... deployment See also: http://kb.mozillazine.org/Locking_preferences http://mike.kaply.com/2012/03/16/custom ... fig-files/ Try something like:
http://kb.mozillazine.org/UserContent.css systemDefaultsGroup is really old http://dxr.mozilla.org/mozilla-esr31/se ... aultsGroup http://dxr.mozilla.org/mozilla-esr38/se ... aultsGroup updateApp is still valid view-source:chrome://browser/content/preferences/in-content/preferences.xul updateButton is still valid view-source:chrome://browser/content/aboutDialog.xul Hi,
thanks for your reply. morat, I try userContent and it works, but I only want to hide "Updates" tab in the "Advanced" Pane. What is the différence between userChrome and userContent ? In previous version of FF, I only user userChrome.css. How can i found the name or ID of the "Updates" tab in the options ? dickvl give a link to https://dxr.mozilla.org/mozilla-esr52/source/browser/components/preferences/in-content/advanced.xul and I see "<tabpanel id="updatePanel" orient="vertical">" So maybe :
In userChrome or userContent ? SJ updateApp still valid in FF 52
<groupbox id="updateApp" align="start"> https://dxr.mozilla.org/mozilla-esr52/source/browser/components/preferences/in-content/advanced.xul I don't know why this code don't works in userChrome.css like previous version :
http://kb.mozillazine.org/UserChrome.css http://kb.mozillazine.org/UserContent.css Last edited by morat on October 11th, 2017, 11:16 am, edited 3 times in total.
about:preferences is a web page and thus the code needs to be in userContent.css like posted above.
@namespace html url(http://www.w3.org/1999/xhtml); If you lock preferences then there is no way to override this. userChrome.css and userContent.css are disabled in Safe Mode, so holding Shift when starting Firefox is sufficient to access these settings.
9 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: Alexa [Bot], Google [Bot], skuddle and 13 guests |
![]() |