How do I delete Bookmarks Toolbar menu item?

Discussion about official Mozilla Firefox builds
mozillazine2x
Posts: 32
Joined: January 14th, 2004, 4:12 pm

Re: How do I delete Bookmarks Toolbar menu item?

Post by mozillazine2x »

I inserted the above mentioned code into my userChrome.css below the @namespace line. I have also tried other codes like

menu[label="Bookmarks Toolbar"] {
display: none !important; }

and

menuitem[id="subscribeToPageMenuitem"],
menuitem[command="Browser:BookmarkAllTabs"],
menuseparator[id="organizeBookmarksSeparator"],
menu[id="bookmarksToolbarFolderMenu"] + menuseparator
{
display: none !important;
}

(both from: http://support.mozilla.com/tiki-view_fo ... &forumId=1)

None of it works. I read somewhere that a code solution is not going to work for FF3 on OSX. So I'll keep on looking for a final fix somewhere.
User avatar
~gargoyle
Posts: 546
Joined: June 28th, 2004, 7:56 pm
Location: Over the rainbow

Re: How do I delete Bookmarks Toolbar menu item?

Post by ~gargoyle »

I entered the following code from page one

[code]/* This removes the bookmarks toolbar entry on the bookmarks menu */

#bookmarksToolbarFolderMenu { display: none !important;}
#organizeBookmarksSeparator { display: none !important;}[/code]

It removed the seperators but it did not remove the toolbar itself.

Below is a copy of my userchrome.css .
As you can see it quite long.
I have been using this for a long time(years). The modifications that I want are still working so I have not messed with it in a very long time.


/*
* Mozilla
* Edit this file and copy it as userChrome.css into your
* profile-directory/chrome/
*/

/*
* This file can be used to customize the look of Mozilla's user interface
* You should consider using !important on rules which you want to
* override default settings.
*/

/*
* 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 */

/*
* For more examples see http://www.mozilla.org/unix/customizing.html
*/


/* This can change the color of the url box, text size,
viewtopic.php?t=108140 */
/* Did not change height of url textbox area height: 1.5em !important;
trying == max-height: 2em !important;
This is a small as it can be srunk any smaller and it can not be read */

#urlbar .textbox-input-box {
font-size: 1.5em !important;
background-color: #CCFF33 !important;
max-height: 2em !important;
}


/* Make menu items in particular instead of the default size: */

menupopup > * {
font-family: Comic Sans MS, sans-serif !important;
font-size: 1.0em !important;
}

/* Remove Favicon placeholder in URL bar */
#page-proxy-deck {
display: none !important;
}

/* change maximum width of bookmarks in menus - default is 26em Flii's Customization Tips */
/* thanks to miahz */
menu.bookmark-item,
menuitem.bookmark-item {
max-width: 36em !important;
}

/* General Tab Appearances */

/* Active tab viewtopic.php?t=24682&highlight=busy */
tab[selected="true"] {
font-weight: bold !important;
font-size: 1em !important;
font-family: Comic Sans MS, san-serif !important;
background-color: #9ABAD1 !important;
}

/* Inactive Tab: Dark Gray viewtopic.php?t=24682&highlight=busy*/
tab:not([selected="true"]) {
-moz-appearance: none !important;
background-color:#99FF00 !important;
-moz-opacity: 0.8 !important;
}
/* Tab while loading viewtopic.php?t=24682&highlight=busy */
tab[busy] {
color:brown !important;
}

tab{
height: 2em !important;
max-height: 2em !important;
-moz-appearance: none !important;
}

/* Inactive Loaded Tabs Problem min-width: 100px !important
* tab {
* background-color: #EFEDDF !important;
* min-width: 20px !important;
* }
*/

/* 2004-08-03 temp shut off */
/* Change font and height 1em 2em changed to 2em 2004-07-12 added vertical-align: ; */
/* height any smaller then 1em and 3em it goes off the bottom */
toolbar, menubar
{font-family: Comic Sans MS, san-serif !important;
font-size: .85em !important;
height: 3em;
}

/* Change font size font family height of urlbar background color
was #EFEDDF changed to CC99FF DID NOT CHANGE COLOR Comic Sans MS, */
#urlbar {font-family: san-serif !important;
font-size: 0.85em !important;
height: 2.5em;
background-color: #CC99FF !important;
}


/* BELOW ALLOWS CHANGES 2 SEPERATE ITEMS */

/* change the font size and type of menu items Flii's Customization Tips
changed font-size: 1em !important
tryed change height: 2.5em; but it made no difference
This only changes the following on the menu "File, Edit, View, Go, Bookmarks"
*/
/* Does it only change "File, Edit, View, Go, Bookmarks" to check if it does will
it change font-family from comic to courier
Anwser ===YES
changed only "File, Edit, View, Go, Bookmarks" did not touch " Stop or Reload "

*/
menubar > menu {
font-size: 1.2em !important;
font-family: Comic Sans MS, Courier New, ns-serif !important;
font-weight: 500 !important;
}

/* Change the font size and type of " Stop Reload " */
/* 2004-08-03 Was font-size: .85em !important;} */
/* This CHANGES ALL of the font size and type from "File to Help"
Test out by changing Comic to Courier New
Answer == Yes changed all to Courier New, */
toolbar
{font-family: Comic Sans MS, Courier New, san-serif !important;
font-size: 1em !important;}


/* Statusbar at the bottom of the page, changes do work
however can not make statusbar any smaller the 1.5em or font the .85em
Add this if you want to change color of font color: #ffe8e8 !important;
*/

statusbar
{font-family: Comic Sans MS, san-serif !important;
font-size: 0.85em !important;
max-height: 1.5em !important;
}


/* Set As Wallpaper */
#context-setWallpaper {
display: none !important;
}
/* Block Images from this Server */
#context-blockimage {
display: none !important;}

/* --- orig/wiki/htdocs/modern/css/screen.css */
/* +++ mod/wiki/htdocs/modern/css/screen.css */
/* @@ -276,6 +276,14 @@ */
background-color: white;
margin: 0;
padding: 10px 30px 20px 30px;

/* theses are some Firefox 1.5b1 specific extensions, see also the CSS3 draft.
-moz-column-count: 2; we better set the column width, so it adapts to screen width
the column rule is not implemented yet (as of FF 1.5b1)
*/
-moz-column-width: 30em;
-moz-column-gap: 2em;
/* -moz-column-rule: solid black 0.3em; doesn't work yet! */
}

/* We use here dumb css1 ids because of IE suckiness */




/* change the font size and menu items changed font-size: 1em !important;

menubar > menu {
font-size: 1em !important;
font-family: Comic Sans MS, san-serif !important;
}
*/

/* navigation toolbar changes THIS DID NOT CHANGE "RELOAD AND STOP"
#nav-bar{
font-size: .85em !important;
font-family: Comic Sans MS, sans-serif !important;
font-weight: 500 !important;
}
*/
/*
http://fireftp.linux-sevenler.org/forum ... .php?t=120
*/
/*
#localdirtree, #localtree, #remotedirtree, #remotetree {
font-size: 5pt;
} */


/* viewtopic.php?t=337771 */
#bookmark-window toolbarbutton > .toolbarbutton-icon {
display: none !important;
}


/* Enlarges The bookmark Window viewtopic.php?t=337127 */

#bmPropsWindow {
width: 600px !important;
}

/* Enlarge elemental properties popup box size
viewtopic.php?t=338440
*/
#metadata {
width: 500px !important;
}


/* this is to edit out the Bookmark all tabs" from the FF 1.5.0.1 Bookmark dropdown */
/* From Swami viewtopic.php?p=2174867#2174867 */
menuitem[label="Bookmark All Tabs..."]
{
display: none;
}
=========================
/* This removes the bookmarks toolbar entry on the bookmarks menu */

#bookmarksToolbarFolderMenu { display: none !important;}
#organizeBookmarksSeparator { display: none !important;}
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

Re: How do I delete Bookmarks Toolbar menu item?

Post by Bluefang »

To remove the toolbar, you need to use View -> Toolbars -> Customize
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
mozillazine2x
Posts: 32
Joined: January 14th, 2004, 4:12 pm

Re: How do I delete Bookmarks Toolbar menu item?

Post by mozillazine2x »

I know how to disable the toolbar. But the object is to remove the Bookmarks Toolbar folder from the Bookmarks menu. On small screens it is yet another item taking up space. Since I don't use the Bookmarks Toolbar, I don't want the folder to appear in my Bookmarks menu.
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

Re: How do I delete Bookmarks Toolbar menu item?

Post by Bluefang »

@mozillazine2x
That comment was directed to ~gargoyle

Anyways, you're missing a rule:

menuitem[id="subscribeToPageMenuitem"],
menuitem[command="Browser:BookmarkAllTabs"],
menuseparator[id="organizeBookmarksSeparator"],
menu[id="bookmarksToolbarFolderMenu"],
menu[id="bookmarksToolbarFolderMenu"] + menuseparator
{
display: none !important;
}

menu[id="bookmarksToolbarFolderMenu"] + menuseparator only selects the menuseparator. It does not include the menu its self.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
User avatar
~gargoyle
Posts: 546
Joined: June 28th, 2004, 7:56 pm
Location: Over the rainbow

Re: How do I delete Bookmarks Toolbar menu item?

Post by ~gargoyle »

To Bluefang.

Thanks that was the answer. The unwanted items have been purged from the list.
Just love how you can customize FF if you just know the code.

One last things how do you know this stuff?
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

Re: How do I delete Bookmarks Toolbar menu item?

Post by Bluefang »

I've been using Firefox since 2003, so I've had plenty of time to learn things through experience or from reference materials (this forum, bug trackers, MozillaZine Knowledge Base, etc).
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
GagleKas
Posts: 3
Joined: August 11th, 2008, 12:17 am

Re: How do I delete Bookmarks Toolbar menu item?

Post by GagleKas »

Hi, i'm new to this site :)

How can I change the color and background image in bookmarks tollbar? I want to copy this bookmark toolbar.

Image



Thanks for helping.
User avatar
eurasiacan
Posts: 186
Joined: November 13th, 2005, 1:57 pm

Re: How do I delete Bookmarks Toolbar menu item?

Post by eurasiacan »

mozillazine2x wrote:Too bad Sidebar Bookmark Selector does not work in OSX nor does the UserChrome.css solution. So still stuck with the Bookmarks Toolbar.


Ah, that would explain my inability to get it to work. If you find something would you be so kind as to post it? (I'll try to do the same.) Thanks
mozillazine2x
Posts: 32
Joined: January 14th, 2004, 4:12 pm

Re: How do I delete Bookmarks Toolbar menu item?

Post by mozillazine2x »

Will do. Although I read somewhere that Firefox menu's somehow work different on OSX compared to Windows. That might explain why the UserChrome solution will not work. I doubt a solution will be found. I keep looking though.
User avatar
Clueless in Seattle
Posts: 503
Joined: March 27th, 2006, 11:58 am
Location: duh!

Re: How do I delete Bookmarks Toolbar menu item?

Post by Clueless in Seattle »

Bluefang wrote:@mozillazine2x
Anyways, you're missing a rule:

menuitem[id="subscribeToPageMenuitem"],
menuitem[command="Browser:BookmarkAllTabs"],
menuseparator[id="organizeBookmarksSeparator"],
menu[id="bookmarksToolbarFolderMenu"],
menu[id="bookmarksToolbarFolderMenu"] + menuseparator
{
display: none !important;
}

menu[id="bookmarksToolbarFolderMenu"] + menuseparator only selects the menuseparator. It does not include the menu its self.


I like having the Bookmark Toolbar at the top of my FF window, but want to remove the Bookmark Toolbar menu item.

Will the above code remove the menu item but still leave the BookMark Toolbar in place at the top of the window above the tabs?
_____________
Will in Seattle
a.k.a. "Clueless"
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

Re: How do I delete Bookmarks Toolbar menu item?

Post by Bluefang »

Yes... but you could have easily tried it out your self.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
User avatar
Clueless in Seattle
Posts: 503
Joined: March 27th, 2006, 11:58 am
Location: duh!

Re: How do I delete Bookmarks Toolbar menu item?

Post by Clueless in Seattle »

Bluefang wrote:Yes... but you could have easily tried it out your self.


Thanks!

Due to multiple chronic illnesses that severely limit the amount of time I'm able to spend at the computer, I'm afraid I'm a little gun shy about experimenting with software modifications. Too many times a simple click of the mouse has taken hours of painful exhausting work at the computer to try to undo. :(
_____________
Will in Seattle
a.k.a. "Clueless"
dynkin
Posts: 31
Joined: September 9th, 2008, 5:15 pm

Re: How do I delete Bookmarks Toolbar menu item?

Post by dynkin »

If you just want to remove the bookmarks toolbar, you can right click on a blank space of the toolbar, choose "Customize..." and recycle the bookmarks toolbar. It is just that simple.
HippoMan
Posts: 74
Joined: November 29th, 2003, 10:03 pm

Re: How do I delete Bookmarks Toolbar menu item?

Post by HippoMan »

Bluefang wrote:@mozillazine2x
That comment was directed to ~gargoyle

Anyways, you're missing a rule:

menuitem[id="subscribeToPageMenuitem"],
menuitem[command="Browser:BookmarkAllTabs"],
menuseparator[id="organizeBookmarksSeparator"],
menu[id="bookmarksToolbarFolderMenu"],
menu[id="bookmarksToolbarFolderMenu"] + menuseparator
{
display: none !important;
}

I'm using Firefox under MacOSX (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3), and this doesn't work for me. However, it works fine under Linux and Windows.

Is there a special incantation that only works under MacOSX? I want to remove the "Bookmarks Toolbar" entry from the "Bookmarks" menu (note that I'm NOT talking about removing the Bookmarks Toolbar itself, just the menu entry for it in the "Bookmarks" menu).

Thanks.
Locked