rem: function registerMenuCommand(docId, commandName, commandFunc) { 
add: function registerMenuCommand(docId, commandName, commandFunc, accel, access) { 
context:   function registerMenuCommand(docId, commandName, commandFunc) {    var menuItem;    var previousItems;        menuItem = window.document.createElement('menuitem');    menuItem.setAttribute("label", commandName);    menuItem.__gmCommandFunc = function(e) {commandFunc()};    //menuItem.addEventListener("command", commandFunc, false);    previousItems = docMenuCommands[docId].childNodes;        var i=0;    var nextNode=null;    while (i < previousItems.length) {      if (commandName.toLowerCase() <           previousItems[i].getAttribute('label').toLowerCase())       {        nextNode = previousItems[i];        break;      }      i++;    }    docMenuCommands[docId].insertBefore(menuItem, nextNode);  }
meta: 9744	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9744/904826b1a895d0db9b1b022eb38190c51df5f2d6/greasemonkey.js/clean/src/content/greasemonkey.js