MouseHunt Toolbar Toggle

No replies
รูปภาพของ Demono
Joined: 10/04/2009
Posts: 1
User offline. Last seen 23 สัปดาห์ 3 วัน ago.

Buttons

INSTALL
 MouseHunt Toolbar Toggle 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 Smile

MouseHunt Toolbar Toggle
Compatibility: 

Firefox 3.0.*

Author(s): 
Demono
Description & info:

Requires Extension(s): 
MouseHunt Toolbar

Button(s):

Behavior

Action Behavior

Left

Toggles the display of the MouseHunt toolbar.

รุ่น

Revision Operations
10/05/2009 - 08:36 by Demono

Updated description

current revision

รหัส

javascript: Copy To Clipboard
/*Code*/
 
 
const toolbar = document.getElementById("FC_Toolbar916ab64cbc3e471b8e6029551922a7ba");
toolbar.collapsed = !toolbar.collapsed;
 
//===================================================================

Init

javascript: Copy To Clipboard
/*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

รายละเอียด

Button Categories: 
Depends on (and Compliments) Extension(s): 
MouseHunt Toolbar

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

Top