tag:blogger.com,1999:blog-11645460.post-1158666043203004472006-09-19T04:40:00.000-07:002006-09-19T04:40:00.000-07:00Anti-User Script Command duplication code:GM_MenuC...Anti-User Script Command duplication code:<BR/><BR/>GM_MenuCommander.prototype.registerMenuCommand = <BR/>function(commandName, commandFunc, accelKey, accelModifiers, accessKey) {<BR/><BR/>// Protection against item duplication by Sergio Abreu<BR/><BR/> for( i = 0; i < this.menuItems.length; i++){ <BR/> if(this.menuItems[i]._commandFunc == commandFunc) return;<BR/> }<BR/><BR/>... here the code continues normallySergio Abreuhttp://www.blogger.com/profile/03634914647693737503noreply@blogger.com