Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to remove "Set Up Firefox Sync" button and related "Sync" items using userChrome.css on Firefox 4.0 final

1,036 views
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

David Pyles

unread,
Apr 14, 2011, 2:56:41 PM4/14/11
to
Thee Chicago Wolf [MVP] wrote:
>> On 4/14/2011 8:51 AM, Thee Chicago Wolf [MVP] wrote:
>>> On Wed, 13 Apr 2011 23:06:07 -0700, Sailfish
>>> <REMOVECAP...@REMOVECAPSunforgettable.com> wrote:
>>>
>>>> On 4/13/2011 6:43 PM, Thee Chicago Wolf (MVP) wrote:
>>>>>> On 4/13/2011 10:16 AM, Thee Chicago Wolf [MVP] wrote:
>>>>>>> I'm reporting this question in hopes someone else will see it.
>>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I've already done my homework and found a page
>>>>>>> (http://getsatisfaction.com/mozilla/topics/exploitable_vulnerability_in_firefox_sync)
>>>>>>> detailing the necessary items to be put into userChrome.css. However,
>>>>>>> when I try the options detailed by the author, I still see that "Set
>>>>>>> Up Firefox Sync" under Tools> Options> Sync. Basically, it doesn't
>>>>>>> seem to work.
>>>>>>>
>>>>>>> I've pasted the below into my userChrome.css but I still see the Set
>>>>>>> Up Firefox Sync button.
>>>>>>>
>>>>>>> menu[label="Tools"] menuitem[label="Sync Now"], #sync-button,
>>>>>>> #sync-setup-appmenu, #sync-syncnowitem-appmenu, #sync-setup,
>>>>>>> #sync-status-button, #BrowserPreferences radio[label="Sync"]
>>>>>>> {display:none!important;}
>>>>>>>
>>>>>>> My userChrome.css currently looks like this:
>>>>>>>
>>>>>>> #addonsMgrGroup,
>>>>>>> #bookmarksToolbarFolderMenu,
>>>>>>> #bookmarks-menu,
>>>>>>> #component-bar,
>>>>>>> #context-setWallpaper,
>>>>>>> #context-setDesktopBackground,
>>>>>>> #context-blockimage,
>>>>>>> #context-bookmarkframe,
>>>>>>> #context-bookmarklink,
>>>>>>> #context-bookmarkpage,
>>>>>>> #context-keywordfield,
>>>>>>> #context-sendaudio,
>>>>>>> #context-sendimage,
>>>>>>> #context-sendlink,
>>>>>>> #context-sendpage,
>>>>>>> #context-sendvideo,
>>>>>>> #defaultBrowserButton,
>>>>>>> #organizeBookmarksSeparator,
>>>>>>> #popupPolicyButton,
>>>>>>> menu[label="Bookmarks Toolbar Folder"] {display: none !important;}
>>>>>>>
>>>>>>> menu[label="Tools"] menuitem[label="Sync Now"],
>>>>>>> #sync-button,
>>>>>>> #sync-setup-appmenu,
>>>>>>> #sync-syncnowitem-appmenu,
>>>>>>> #sync-setup,
>>>>>>> #sync-status-button,
>>>>>>> #BrowserPreferences radio[label="Sync"] {display: none !important;}
>>>>>>>
>>>>>>> Any help would be greatly appreciated.
>>>>>>>
>>>>>> Try replacing:
>>>>>> #BrowserPreferences radio[label="Sync"] {display: none !important;}
>>>>>>
>>>>>> with:
>>>>>>
>>>>>> #BrowserPreferences radio[pane="paneSync"] {display: none !important;}
>>>>>>
>>>>>> Good luck!
>>>>>
>>>>> I'll give it a shot. Thanks.
>>>>
>>>> Sure thing.
>>>
>>> Well, I tried it and the "Set Up Firefox Sync" button under Tools>
>>> Options> Sync is still there. Thanks for the suggestion. By the way,
>>> where did you find the info on #BrowserPreferences
>>> radio[pane="paneSync"] {display: none !important;}
>>>
>> The DOM Inspector add-on allows you to interrogate both Chrome and
>> Content elements. I simply interrogated the Sync button of the Option
>> panel (chrome://browser/content/preferences/preferences.xul).
>>
>> btw, I tested the override above on my system to insure that it hid the
>> Sync button and it's panel. If it's not working on your system, that may
>> indicate that you're either not adding the override in the correct
>> userChrome.css file (perhaps from a different profile?), your
>> userChrome.css file may have another entry nullifying the one I gave you
>> or you may have not entered the override correctly.
>
> Yes, that would make sense. However, I am dropping it in C:\Program
> Files (x86)\Mozilla Firefox\Chrome where it's always been. It is
> hiding the other things as usual. Where else could a userChrome.css be
> hiding? I search the entire drive (hidden files and all) and no other
> userChrome.css is showing up that might be thwarting me. I'll simply
> try your entry alone and remove the others and report back.
>
> - Thee Chicago Wolf [MVP]
This page will help you find the path to your profile folder:
http://kb.mozillazine.org/Profile_folder_-_Firefox

Alternatively click Help >Troubleshooting Information, then click the
"Open Containing Folder" button which will open your profile folder.
Incide that folder there should be a folder labeled Chrome. The
userChrome.css, I think, doesn't exist by default, but if one has been
created it will be in that Chrome folder. If it's not there, just
create an empty text file in the folder and name it userChrome.css.
(Note the uppercase C in the file name.)
Dave Pyles

Message has been deleted
Message has been deleted
Message has been deleted

Terry R.

unread,
Apr 14, 2011, 4:30:00 PM4/14/11
to
On 4/14/2011 1:17 PM On a whim, Thee Chicago Wolf [MVP] pounded out on
the keyboard

> Ok, so the mystery is a little bit solved. There is no chrome folder
> in the profile folder. It shouldn't make a difference but this was a
> Fx4 install that upgraded over Fx 3.6.15. For whatever reason, it
> removes the chrome folder. I can manually add one and things work but
> that's odd. For what it's worth, this is not pointing to the usual
> location but to a custom location where the profile cannot be deleted.
> I'll just leave it at that. Now that I have a handle on it, I'll do
> some experimentation with it.
>


If the chrome folder existed in 3.x, it would have been copied unless
you created a new FF4 profile. Then it would have been left up to you
to copy over what you wanted from 3.x to 4. I've never seen FF remove
anything in the profile, so I doubt that happened.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.

Message has been deleted

Ron K.

unread,
Apr 14, 2011, 6:50:36 PM4/14/11
to
Thee Chicago Wolf [MVP] on 4/14/2011 3:52 PM, keyboarded a reply:
> On Thu, 14 Apr 2011 09:36:24 -0700, Sailfish
> Ok, a little bit of progress. Simple using #BrowserPreferences
> radio[pane="paneSync"] {display: none !important;} or, conversely,

> #BrowserPreferences radio[label="Sync"] {display: none !important;}
> and another entry in userChrome.css does hide Sync from the Tools>
> Options menu but the "Set Up Firefox Sync" button is still there.

>
> - Thee Chicago Wolf [MVP]

If that button is on a toolbar, then it should be removable back to the
toolbar Pallet by Drag&Drop.

--
Ron K.
Who is General Failure, and why is he searching my HDD?
Kernel Restore reported Major Error used BSOD to msg the enemy!

Message has been deleted
Message has been deleted

Ron K.

unread,
Apr 15, 2011, 4:33:19 PM4/15/11
to
Sailfish on 4/14/2011 8:36 PM, keyboarded a reply:
>>>>>>>>>[snip]

>>>
>>> Ok, a little bit of progress. Simple using #BrowserPreferences
>>> radio[pane="paneSync"] {display: none !important;} or, conversely,
>>> #BrowserPreferences radio[label="Sync"] {display: none !important;}
>>> and another entry in userChrome.css does hide Sync from the Tools>
>>> Options menu but the "Set Up Firefox Sync" button is still there.
>>>
>>> - Thee Chicago Wolf [MVP]
>>
>> If that button is on a toolbar, then it should be removable back to the
>> toolbar Pallet by Drag&Drop.
>>
> It's the whole Options Sync panel that he wants hidden. Also, he wants to
> hide the Sync button even from the palette. The Sync capability allows one
> to set up their own Sync server. His concern is that he will have his
> computers available to the public and that some nefarious individuals may
> set his computer up with the sync option and set the server up on one of
> their system and then gain access to the saved sync data of everyone who
> uses the feature on his public machines.
>
> By hiding them this way, it will make it more difficult to do so.
>

Sounds like a better solution would be locking down the feature through
what ever replaced CAPS in the Gecko backend.

Message has been deleted
Message has been deleted

Ron Hunter

unread,
Apr 16, 2011, 4:32:12 PM4/16/11
to
On 4/16/2011 1:49 PM, Thee Chicago Wolf (MVP) wrote:
>> On 4/14/2011 1:17 PM, Thee Chicago Wolf [MVP] wrote:
>>> On Thu, 14 Apr 2011 11:57:51 -0700, Sailfish
>>> <REMOVECAP...@REMOVECAPSunforgettable.com> wrote:

>>>
>>>> On 4/14/2011 11:33 AM, Thee Chicago Wolf [MVP] wrote:
>>>>>> On 4/14/2011 8:51 AM, Thee Chicago Wolf [MVP] wrote:
>>>>>>> On Wed, 13 Apr 2011 23:06:07 -0700, Sailfish
>>>>>>> <REMOVECAP...@REMOVECAPSunforgettable.com> wrote:
>>>>>>>
>>>>>>>> On 4/13/2011 6:43 PM, Thee Chicago Wolf (MVP) wrote:
>>>>>>>>>> On 4/13/2011 10:16 AM, Thee Chicago Wolf [MVP] wrote:
>>>>>>>>>>> I'm reporting this question in hopes someone else will see it.
>>>>>>>>>>>
>>>>>>>>>>> Hi all,
>>>>>>>>>>>
>>>>>>>>>>> I've already done my homework and found a page
>>>>>>>>>>> (http://getsatisfaction.com/mozilla/topics/exploitable_vulnerability_in_firefox_sync)
>>>>>>>>>>> detailing the necessary items to be put into userChrome.css. However,
>>>>>>>>>>> when I try the options detailed by the author, I still see that "Set
>>>>>>>>>>> Up Firefox Sync" under Tools> Options> Sync. Basically, it doesn't
>>>>>>>>>>> seem to work.
>>>>>>>>>>>
>>>>>>>>>>> I've pasted the below into my userChrome.css but I still see the Set
>>>>>>>>>>> Up Firefox Sync button.
>>>>>>>>>>>
>>>>>>>>>>> menu[label="Tools"] menuitem[label="Sync Now"], #sync-button,
>>>>>>>>>>> #sync-setup-appmenu, #sync-syncnowitem-appmenu, #sync-setup,
>>>>>>>>>>> #sync-status-button, #BrowserPreferences radio[label="Sync"]
>>>>>>>>>>> {display:none!important;}
>>>>>>>>>>>
>>>>>>>>>>> My userChrome.css currently looks like this:
>>>>>>>>>>>
>>>>>>>>>>> #addonsMgrGroup,
>>>>>>>>>>> #bookmarksToolbarFolderMenu,
>>>>>>>>>>> #bookmarks-menu,
>>>>>>>>>>> #component-bar,
>>>>>>>>>>> #context-setWallpaper,
>>>>>>>>>>> #context-setDesktopBackground,
>>>>>>>>>>> #context-blockimage,
>>>>>>>>>>> #context-bookmarkframe,
>>>>>>>>>>> #context-bookmarklink,
>>>>>>>>>>> #context-bookmarkpage,
>>>>>>>>>>> #context-keywordfield,
>>>>>>>>>>> #context-sendaudio,
>>>>>>>>>>> #context-sendimage,
>>>>>>>>>>> #context-sendlink,
>>>>>>>>>>> #context-sendpage,
>>>>>>>>>>> #context-sendvideo,
>>>>>>>>>>> #defaultBrowserButton,
>>>>>>>>>>> #organizeBookmarksSeparator,
>>>>>>>>>>> #popupPolicyButton,
>>>>>>>>>>> menu[label="Bookmarks Toolbar Folder"] {display: none !important;}
>>>>>>>>>>>
>>>>>>>>>>> menu[label="Tools"] menuitem[label="Sync Now"],
>>>>>>>>>>> #sync-button,
>>>>>>>>>>> #sync-setup-appmenu,
>>>>>>>>>>> #sync-syncnowitem-appmenu,
>>>>>>>>>>> #sync-setup,
>>>>>>>>>>> #sync-status-button,
>>>>>>>>>>> #BrowserPreferences radio[label="Sync"] {display: none !important;}
>>>>>>>>>>>
>>>>>>>>>>> Any help would be greatly appreciated.
>>>>>>>>>>>
>>>>>>>>>> Try replacing:
>>>>>>>>>> #BrowserPreferences radio[label="Sync"] {display: none !important;}
>>>>>>>>>>
>>>>>>>>>> with:

>>>>>>>>>>
>>>>>>>>>> #BrowserPreferences radio[pane="paneSync"] {display: none !important;}
>>>>>>>>>>
>>>>>>>>>> Good luck!
>>>>>>>>>
>>>>>>>>> I'll give it a shot. Thanks.
>>>>>>>>
>>>>>>>> Sure thing.
>>>>>>>
>>>>>>> Well, I tried it and the "Set Up Firefox Sync" button under Tools>
>>>>>>> Options> Sync is still there. Thanks for the suggestion. By the way,
>>>>>>> where did you find the info on #BrowserPreferences

>>>>>>> radio[pane="paneSync"] {display: none !important;}
>>>>>>>
>>>>>> The DOM Inspector add-on allows you to interrogate both Chrome and
>>>>>> Content elements. I simply interrogated the Sync button of the Option
>>>>>> panel (chrome://browser/content/preferences/preferences.xul).
>>>>>>
>>>>>> btw, I tested the override above on my system to insure that it hid the
>>>>>> Sync button and it's panel. If it's not working on your system, that may
>>>>>> indicate that you're either not adding the override in the correct
>>>>>> userChrome.css file (perhaps from a different profile?), your
>>>>>> userChrome.css file may have another entry nullifying the one I gave you
>>>>>> or you may have not entered the override correctly.
>>>>>
>>>>> Yes, that would make sense. However, I am dropping it in C:\Program
>>>>> Files (x86)\Mozilla Firefox\Chrome where it's always been. It is
>>>>> hiding the other things as usual. Where else could a userChrome.css be
>>>>> hiding? I search the entire drive (hidden files and all) and no other
>>>>> userChrome.css is showing up that might be thwarting me. I'll simply
>>>>> try your entry alone and remove the others and report back.
>>>>>
>>>> That is not the location where it should reside; rather, it should
>>>> reside in your Firefox profile's Chrome folder. The link below gives you
>>>> instructions on how to locate it on your system:
>>>>
>>>> http://support.mozilla.com/en-US/kb/Profiles
>>>>
>>>> After opening the profile folder, navigate to its Chrome\ folder. You
>>>> should be able to Cut your existing userChrome.css file from your
>>>> Firefox 4 installation Chrome folder and Paste it into your open profile
>>>> Chrome/ folder.
>>>>
>>>> Note: Insure that Firefox is not running when you do this.
>>>>
>>>> Good luck!

>>>
>>> Ok, so the mystery is a little bit solved. There is no chrome folder
>>> in the profile folder. It shouldn't make a difference but this was a
>>> Fx4 install that upgraded over Fx 3.6.15. For whatever reason, it
>>> removes the chrome folder. I can manually add one and things work but
>>> that's odd. For what it's worth, this is not pointing to the usual
>>> location but to a custom location where the profile cannot be deleted.
>>> I'll just leave it at that. Now that I have a handle on it, I'll do
>>> some experimentation with it.
>>>
>> Apparently, Fx 4.0 no longer creates the user profile chrome/ folder.
>> However, if you create it and put your userChrome.css file in it, the
>> style overrides should work.
>
> Yup, this is confirmed on my side two. Other folders from the 3.6.x
> days are gone too. I guess I just have to work around it. Thanks
> immensely for the help.

Yes, I noticed that also. I guess if it isn't needed, it isn't created.
Who needs a bunch of empty folders?

Message has been deleted
Message has been deleted
Message has been deleted

Sailfish

unread,
Apr 19, 2011, 3:09:13 PM4/19/11
to
>> It's not clear from your response but I want to insure that you
>> understand that even though Fx 4 no longer automatically adds the
>> profile Chrome/ folder, you can simply manually add it yourself, place
>> your userChrome.css file in it and Fx 4 will use the style overrides in
>> it just as it has done with previous releases.
>
> Well, I did get it to work but I had to remove a few items in my
> userChrome.css that seemed to be overriding #BrowserPreferences
> radio[pane="paneSync"] {display: none !important;} so that part is now
> good.
>
> However, now my "Boorkmarks" menu item and "Bookmarks Toolbar" are
> visible to users. I used to have those disabled (hidden) in Fx 3.6 so
> users wouldn't add bookmarks or muck around with revealing Bookmarks
> Toolbar. I installed Dom Inspector 2.0.9 to see if I could figure it
> out on my own but thus far I am clueless.
>
Getting used to the Dom Inspector takes a little getting used to. You
might find my complementary add-on, InspectorWidget http://bit.ly/fQWA94
useful?

For now, these style overrides should work:

#bookmarksMenu,
#PersonalToolbar { display:none !important; }

Good luck.

--
Sailfish - Netscape/Mozilla Champion
Netscape/Mozilla Tips: http://www.ufaq.org/ , http://ilias.ca/
Rare Mozilla Stuff: http://www.projectit.com/

Message has been deleted

Sailfish

unread,
Apr 19, 2011, 4:50:32 PM4/19/11
to
> Ok, I installed your Inspector Widget and have dabbled a bit to see if
> I could hack around a bit more. I think I just need to practice it a
> bit more to learn how to interpret stuff and how to hide / disable
> what I want. I found a bunch of id's that I thought were related to
> the Bookmarks Toolbar item I was looking to hide but it didn't work:
>
> #MBM_BookmarksToolbar,
> #MBM_viewBookmarksToolbar,
> #bookmarksToolbarFolderMenu,
> #bookmarksToolbarFolderPopup,
> #appmenu_bookmarksToolbar,
> #appmenu_bookmarksToolbarPopup
>
> #bookmarksMenu did hide the Bookmarks menu item (between History and
> Tools) perfectly, thanks. The other I am trying to hide is the
> Bookmarks Toolbar context menu item (well, pretty much all except Menu
> Bar) that appears when you right-click the gray area just above the
> address bar (Menu Bar, Navigation Toolbar, Bookmarks Toolbar, Add-on
> Bar, Tabs on Tops, and Customize appear when you do it). I'm still
> messin' with it and looking at tutorials here and there.
>
Yeah, menu items a more complicated at finding. Anyway, try this:

#toolbar-context-menu menuitem:not([id="toggle_toolbar-menubar"]), /*
Hide all menu items except menubar */
#toolbar-context-menu menuseparator /* Hide all menuseparators */
{ display:none !important;}

Message has been deleted
Message has been deleted

Ron K.

unread,
Apr 19, 2011, 5:59:44 PM4/19/11
to
Thee Chicago Wolf [MVP] on 4/19/2011 5:13 PM, keyboarded a reply:
>>>[snip]

>>>
>> Yeah, menu items a more complicated at finding. Anyway, try this:
>>
>> #toolbar-context-menu menuitem:not([id="toggle_toolbar-menubar"]), /*
>> Hide all menu items except menubar */
>> #toolbar-context-menu menuseparator /* Hide all menuseparators */
>> { display:none !important;}
>
> Well, as luck would have it, removing #BrowserPreferences
> radio[label="Sync"] {display: none! important;} makes everything else
> but Menu Bar disappear but then I lose hiding Sync in options. LOL. Is
> there an entry that just removes "Bookmarks Toolbar" from that context
> menu that I could try? I could live with the other being there but
> dammit, I'm gonna exhaust every option (and probably you too!).
> Cheers.

>
> - Thee Chicago Wolf [MVP]


Because CSS is Cascading, the order of rules is important. In principal,
rules are arranged from the Global to the specific to reduce instances of
undesired results.

Sailfish

unread,
Apr 19, 2011, 7:45:16 PM4/19/11
to
Thee Chicago Wolf [MVP] wrote:
> On Tue, 19 Apr 2011 13:50:32 -0700, Sailfish
> Well, as luck would have it, removing #BrowserPreferences
> radio[label="Sync"] {display: none! important;} makes everything else
> but Menu Bar disappear but then I lose hiding Sync in options. LOL. Is
> there an entry that just removes "Bookmarks Toolbar" from that context
> menu that I could try? I could live with the other being there but
> dammit, I'm gonna exhaust every option (and probably you too!).
> Cheers.
>
That "#BrowserPreferences ..." override came from somewhere else. The
one I gave you before was:

#BrowserPreferences radio[pane="paneSync"] { display: none !important; }

I've tried using this one and the ones above together and they seem to
work fine.

Sailfish

unread,
Apr 19, 2011, 9:17:30 PM4/19/11
to
On a side note, depending on how cautious you want to be, there still is
another hole that you may want to cover up. Specifically, selecting
"Help>Troubleshooting Information" will bring up the "about:support"
page. Then under Application Basics there's a button next to the
"Profile Directory" that will bring up the browser's userChrome.css file
in a text editor. An enterprising hacker could simply do a "Select All",
then Backspace, then Save, then Ctrl+Alt+R and, Voila!, all your work
has been voided.

There are a couple of ways you could get around this. The easiest would
be to write-protect the profile chrome/ folder and the files within it
with Admin permissions.

A less secure method would be to add another style override to your
userChrome.css file and one to your userContent.css (may need to be
created) file as follows:

userChrome.css Style Override:

menuitem#troubleShooting { display: none !important; } /* Removes Help
Troubleshooting menu option */

userContent.css Style Override:

div#contents button { display: none !important; } /* Removes "Open
Containing Folder" button from about:support page */

Lastly, I should mention that there a innumerable ways an enterprising
individual may find to circumvent your overrides, these are really meant
to provide the less-enterprising ones :)

Sailfish

unread,
Apr 19, 2011, 9:49:05 PM4/19/11
to
Rewritten so as to make sense:

Lastly, I should mention that there are innumerable ways an enterprising

individual may find to circumvent your overrides, these are really meant

to prevent the less-enterprising ones.

Message has been deleted
Message has been deleted
Message has been deleted

Ron K.

unread,
Apr 20, 2011, 10:58:30 AM4/20/11
to
Thee Chicago Wolf [MVP] on 4/20/2011 10:14 AM, keyboarded a reply:

>>> Well, as luck would have it, removing #BrowserPreferences


>>> radio[label="Sync"] {display: none! important;} makes everything else
>>> but Menu Bar disappear but then I lose hiding Sync in options. LOL. Is
>>> there an entry that just removes "Bookmarks Toolbar" from that context
>>> menu that I could try? I could live with the other being there but
>>> dammit, I'm gonna exhaust every option (and probably you too!).
>>> Cheers.
>>>
>> That "#BrowserPreferences ..." override came from somewhere else. The
>> one I gave you before was:
>>
>> #BrowserPreferences radio[pane="paneSync"] { display: none !important; }
>>
>> I've tried using this one and the ones above together and they seem to
>> work fine.
>

> Ron K pointed out that it might be related to the order. I'm going to
> do some re-arranging to put the global stuff first and less specific
> stuff last. I didn't realize that might have been the case.


>
> - Thee Chicago Wolf [MVP]

A clarification of my comment on ordering. CSS works much like outlining
of a document. Where each level of sub-rules applies only to that
sub-section, by becoming more specific and can over ride rules from the
parent containing rule set.

Sailfish

unread,
Apr 20, 2011, 11:06:22 AM4/20/11
to
> Ron K pointed out that it might be related to the order. I'm going to
> do some re-arranging to put the global stuff first and less specific
> stuff last. I didn't realize that might have been the case.
>
That is true for anything else you may have in your userChrome.css file
and, possibly, some other non-default theme or add-on. The easiest way
to test this possibility would be to create a userChrome.css file with
just these overrides. Then, if that still doesn't work, try it on the
default them and lastly, try it by disabling add-ons (Note: don't use
"Help>Restart with addons disabled" option since that also disables
userChrome.css overrides.)

Good luck.

Message has been deleted
Message has been deleted

Sailfish

unread,
Apr 20, 2011, 11:21:55 AM4/20/11
to
Thee Chicago Wolf [MVP] wrote:
> On Wed, 20 Apr 2011 08:06:22 -0700, Sailfish
> Well, as I mentioned to Ron, after rearranging item, I'm 95% where I
> want to be. Sadly, some options like turning off Troubleshooting and
> Open Containing folder cause Sync to appear. So one thing gets hidden
> but the formerly hidden thing appears. In any case, I think I'll be
> good with what I have now. I've been running Firefox for years with a
> kiosked cfg file and userChrome and no one's screwed up an install
> yet. Thanks immensely! It's been quite a learning experience.
>
None of those overrides should affect the Sync button override. Can you
post here your entire userChrome.css file? I'll test it on my system and
see what's happening.
Message has been deleted

Sailfish

unread,
Apr 20, 2011, 12:07:58 PM4/20/11
to
Thee Chicago Wolf [MVP] wrote:
> On Wed, 20 Apr 2011 08:21:55 -0700, Sailfish
> With a couple things omitted (but listed down below), here's what I
> have:
>
> #addonsMgrGroup,
> #bookmarksMenu,
> #bookmarksToolbarFolderMenu,
> #bookmarks-menu,
> #component-bar,

> #context-blockimage,
> #context-bookmarkframe,
> #context-bookmarklink,
> #context-bookmarkpage,
> #context-keywordfield,
> #context-sendaudio,
> #context-sendimage,
> #context-sendlink,
> #context-sendpage,
> #context-sendvideo,
> #context-setDesktopBackground,
> #context-setWallpaper,
> #defaultBrowserButton,
> #organizeBookmarksSeparator,
> #popupPolicyButton,

> #toolbar-context-menu menuitem:not([id="toggle_toolbar-menubar"]),
> #sync-button,
> #sync-setup,
> #sync-setup-appmenu,
> #sync-status-button,
> #sync-syncnowitem-appmenu,

> #BrowserPreferences radio[pane="paneSync"] {display: none
> !important;},

> menu[label="Tools"] menuitem[label="Sync Now"]
>
>
>
> So what I've been seeing is that when I introduce...

> /* Hide all menuseparators */
> #toolbar-context-menu menuseparator {display:none !important;}
>
> ...after #toolbar-context-menu
> menuitem:not([id="toggle_toolbar-menubar"]) Sync stuff (Tools > Set Up
> Sync and Tools > Options > Sync) reappears.
>
> Same goes for adding...

>
> /* Removes Help Troubleshooting menu option */
> menuitem#troubleShooting {display: none !important;}
>
> /* Removes "Open Containing Folder" button from about:support page */
> div#contents button {display: none !important;}
>
> ...BEFORE sync related entries. Sync stuff reappears. If I add it
> AFTER the sync related entries, sync stuff stays hidden but Help >
> Troubleshooting Information is still there.
>
Could you please supply the unaltered, non-commented contents of your
userChrome.css file. There are several areas in what you supplied that
could cause the problems but it's unclear whether some of it is comments
or some of it is CSS rule mistakes.

TIA

Message has been deleted

Sailfish

unread,
Apr 20, 2011, 1:10:20 PM4/20/11
to
Great, thanks!

There were a couple of omissions and one misplaced rule that caused some
issues. Below is a re-formatted version that seems to work on my system
using the default theme.

Also, another good place to check to see if you may have some problems
with your userChrome.css entries is the Error Console, Tools>Error Console.

I hope this helps.


#addonsMgrGroup,
#bookmarksMenu,
#bookmarksToolbarFolderMenu,
#bookmarks-menu,
#component-bar,
#context-blockimage,
#context-bookmarkframe,
#context-bookmarklink,
#context-bookmarkpage,
#context-keywordfield,
#context-sendaudio,
#context-sendimage,
#context-sendlink,
#context-sendpage,
#context-sendvideo,
#context-setDesktopBackground,
#context-setWallpaper,
#defaultBrowserButton,
#organizeBookmarksSeparator,
#popupPolicyButton,
#toolbar-context-menu menuitem:not([id="toggle_toolbar-menubar"]),

#toolbar-context-menu menuseparator,


#sync-button,
#sync-setup,
#sync-setup-appmenu,
#sync-status-button,
#sync-syncnowitem-appmenu,

menuitem#troubleShooting,
#BrowserPreferences radio[pane="paneSync"],
menu[label="Tools"] menuitem[label="Sync Now"] {display: none
!important;}

PS: Just a reminder, you may want to create and add the following
override to your userContent.css file to ensure that the Open
userChrome.css file button is hidden in the event that someone enters,
about:support in the URLbar:

div#contents button { display: none !important; }

--

Message has been deleted

Sailfish

unread,
Apr 20, 2011, 1:27:03 PM4/20/11
to
> Awesome. I'll give it a whirl. Thanks for looking things over and
> figuring out the formatting for me. And also the tip on the error
> console. Cheers.
>
Sure thing. Best of luck to you.
0 new messages