MozillaZine

Custom Buttons help please

Talk about add-ons and extension development.
Bozz
 
Posts: 2684
Joined: October 18th, 2007, 1:53 pm

Post Posted October 3rd, 2018, 1:11 pm

I need some help creating some Custom Buttons please. If anyone can help, I would appreciate it. In SeaMonkey.

I need the codes for:

Page Info
Error Console
about:config

morat
 
Posts: 2867
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 3rd, 2018, 6:49 pm

These commands work in Firefox 62.

Code: Select all
/*Code*/
BrowserPageInfo();

Code: Select all
/*Code*/
document.getElementById("menu_browserConsole").click();

Code: Select all
/*Code*/
gBrowser.addTab("about:config");

Get Command
http://custombuttons.sourceforge.net/forum/viewtopic.php?f=4&t=531

Get Command (simplified version)
http://custombuttons.sourceforge.net/forum/viewtopic.php?p=3742#p3742

Bozz
 
Posts: 2684
Joined: October 18th, 2007, 1:53 pm

Post Posted October 4th, 2018, 3:38 am

Thanks morat. I doing some pre-troubleshooting/problem solving for SeaMonkey 2.53 when it gets into a release state.

The old codefisher toolbar-buttons addon I have doesn't work with SM 2 53. Something in the latest codefisher toolbar-buttons breaks SM. Every time I launch SM, it doesn't remember the window size. The window gets bigger each time I open SM. It happens SM 2.49.* and 2.53. Custom Buttons lets me replace it.

Thanks for the Get Command link. That will help with any more buttons I might need.

Bozz
 
Posts: 2684
Joined: October 18th, 2007, 1:53 pm

Post Posted October 5th, 2018, 3:18 am

This opens about:config in a foreground tab.

Code: Select all
gBrowser.selectedTab = gBrowser.addTab("about:config", null, null, null, false, false);

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 1 guest