MouseHunt Toolbar Toggle
Buttons
| INSTALL |
|---|
MouseHunt Toolbar Toggle
| WHAT IS IT? |
My first button which simply toggles the official MouseHunt Toolbar on and off in Firefox.
MouseHunt is a popular app/game hosted on FaceBook and players have the option of installing this toolbar to display gameplay stats along with the option of searching the web with the toolbar a number of times each day in exchange for some valuable in-game items. The toolbar currently lacks its own toggle button which is the reason I made this button. |
CREDITS |
The code is based off the button Firefm Toolbar Toggle. I just modified it slightly to target the MouseHunt toolbar instead. | OTHER STUFF |
This code could probably be optimized or done differently but its functional. I'll probably try to add more "features" to it as a learning project. On a side note, the toolbar ID I used is FC_Toolbar916ab64cbc3e471b8e6029551922a7ba.
I'm not sure if this is unique in some way. I installed the toolbar on a different Firefox profile on a different user account on this machine and the ID was the same, I haven't tested it beyond that though. Any suggestions on a better way to target the toolbar would be appreciated as well as any other parts of the code. Thanks for reading and please excuse any newbishness on my part |
Behavior
| Action | Behavior |
|---|---|
| Toggles the display of the MouseHunt toolbar. |
รุ่น
รหัส
/*Code*/ const toolbar = document.getElementById("FC_Toolbar916ab64cbc3e471b8e6029551922a7ba"); toolbar.collapsed = !toolbar.collapsed; //===================================================================
Init
/*Initialization code*/ /*------------------ Custom Buttons Attributes Block Start ------------------*/ this.setAttribute('author','jw25, Demono'); this.setAttribute('version','20091004.01'); this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/mousehunt-toolbar-toggle.html'); this.setAttribute('dependency','MouseHunt Toolbar'); this.setAttribute('status','Dev'); this.setAttribute('public',true); // this.tooltipText += ''; /*------------------- Custom Buttons Attributes Block End -------------------*/ if (typeof custombuttons.uCbuttonButes != 'function') { alert( this.CbStr.sButtonCompatabilityAlert ); this.disable(true); } var Msg = createMsg(this.label); var de = createDebug(this);
คู่มือการใช้งาน
/*Help*/ Left-click toggle the MouseHunt toolbar. MouseHunt is a popular game on FaceBook. The toolbar this button toggles can be found at: http://apps.facebook.com/mousehunt/toolbar.php
รายละเอียด
Custom Buttons² was not found: find out why...
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 4.0.20506)
Posted with the theme Twilight
MouseHunt Toolbar Toggle
