Menubar Buttons Group

1 reply [Last post]
nicholas's picture
Joined: 02/01/2009
Posts: 327
User offline. Last seen 14 weeks 4 days ago.

Buttons

A button for each menu on the menubar. These were originally made by aranittara, but have been completely recoded to allow for the new grouping feature in custom buttons extension as well as cloning of the menus in a smoother fashion. The buttons also hide the corresponding menus they are replacing.

There is one additional button not available directly from the menubar, that is the Bookmarks Toolbar Menu, it clones the menu from within the Bookmarks Menu.

These no longer require a restart to get working. Unless upgrading from previous versions (aranittara's), then you would still need a restart.

Menubar Buttons Group
Compatibility: 

Firefox 3.0.* Firefox 2.0.* Firefox 1.5.* Flock Thunderbird 3.* Thunderbird 2.*

Author(s): 
nicholas
Description & info:

Alternate Image(s):

Behavior

Action Behavior

Left

  • Opens the Associated Menu

Any Click

  • If a menu is open then the context will change based on the button the mouse is hovered over.
  • Like the main menu behavior.

Revisions

Revision Operations
04/17/2009 - 13:45 by nicholas

Adding alternate image to the Bookmarks Toolbar Menu button

current revision
03/02/2009 - 10:48 by admin

update compatibility field

02/27/2009 - 18:32 by SCAdmin
02/25/2009 - 22:29 by admin
02/25/2009 - 22:20 by admin
02/25/2009 - 21:52 by admin
02/25/2009 - 17:28 by rawny
02/23/2009 - 15:45 by SCAdmin
02/23/2009 - 15:44 by SCAdmin
02/23/2009 - 11:54 by SCAdmin

Moved Post

Code

javascript: Copy To Clipboard
/*Code*/

Init

javascript: Copy To Clipboard
var that=this,Cb=custombuttons,num=Cb.getNumber(this.id),menuName='file-menu',popupID="cb2mBar-"+menuName+num;
document.getElementById(menuName).setAttribute('collapsed','true');
this.initBtn = function() {
  var menuNode = document.getElementById(menuName).firstChild;
  mPop=menuNode.cloneNode(true);
  mPop.setAttribute("id", popupID);
  that.appendChild(mPop);
}
setTimeout(this.initBtn, 5000);
 
this.hideDropMarker = function() {
  var dropMarker = document.getAnonymousElementByAttribute(that, "class", "toolbarbutton-menu-dropmarker");
  if (dropMarker) {
    dropMarker.setAttribute("hidden", "true");
  } else {
    setTimeout(that.hideDropMarker, 1);
  }
}
that.hideDropMarker();
 
this.type="menu";
this.setAttribute("class", "menu-iconic");
 
// mouseovers
this.setAttribute("onmouseover", "this.hideDropMarker();" );
 
// button attributes
this.setAttribute("author",'nicholas');
this.setAttribute("version",'20081211.00');
this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/menubar-buttons-group.html');
this.setAttribute("dependency",'FF 3.0.*,CB 2.0.7.9*');
this.setAttribute("status",'Complete');
this.setAttribute("public",true);
 
// make it part of the button group for menubar-menus
custombuttons.setToolbarGroup(this, "menubar-menus");

Help

No help developed for 
<label> button
custombuttons-button<id>.

Details

Button Categories: 
Replaces Extension(s): 

test3

Top
Joined: 01/30/2010
Posts: 1
User offline. Last seen 5 weeks 9 hours ago.


Can this button be fixed so that middle-clicking on a bookmark opens it in a new tab. This functionality exists in the Bookmarks Menu button but not the Bookmarks Toolbar Menu.

Custom Buttons² v.3.1.0

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6

Posted with the theme Pluralism

Top