MozillaZine


[Ext] Custom Buttons 0.0.1.2

Announce and Discuss the Latest Theme and Extension Releases.
Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted June 16th, 2006, 6:36 am


The above Extensions and Themes example buttons doesn't work on Bon Echo.
These are the replacements, work on Firefox 1.5 and Bon Echo. Not sure with Minefield.
Middle click on the button will open the Extensions/Themes window in a new tab.
  • <a href="custombutton://Extensions%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACV0lEQVR4Xi3OT2ibZQDH8c/7msT1pZqOtlQ32ulaGJVuB0UvMiyRCbZCT14MHUIzcaCCFcZAGOiKIB3UkyCeBBU86EGYiPZanTIZwnTWScdqbdM/U/vHN1mS5jGHHD637w9+TOM1vKrTtPe8419z7njflrmWt2yb9ocpE0p4CaW2KTjVdtKgkqsnloZCMYyHQjgeHguD4YndoeBDwagZpzCKsfbmNIzjZZxF0aiS+Qd/TUJvRRjYzQcf2DPhotP6TOBJTOE5FIlVPG/NZEvRpq6Wpcp/dR1RXlcmz5pUasWOUalJDQ+3AOC83aGb/SF7TfCdMHCzJ5zYHwjKghXhwC1NXwvmBbOCgheVMI4iGSOas0MXXfWTdWU/WnBjc5kKUqpZkUGibkIFC1IdetSdwZXInB3HJS7bUNR3aCQbr67VaeAuKthGNxbxhVcccNiw8275LbZgw+dm/OUFn/h5falODjVUUUeEHfQKjrhg0OueEunUH3nGfY7akwjWvWnSjEdxG3U0UEOKCAnu4l58605Gzq4EOWRsqLWDFI22/bY6AlJ0ATHOCR6XlcgogCruRx6dgDo6BGvYQQY1cazfu3p9atUlxxT0YxnXcQ2/o4I8yvjSx+ZdsYI9ucjbNj2rx3UMY9O+ryy67bKGX3R42hEnjXnIIr4xJvE3LuH7WCqSw1HUsOAfq96QdU63j+SdUTbrBhLUHJTzg7Ki4ELsHhlNVJHBiIMOOatTnwSRYYeVHEMT2n3WMqoZizZ8pmm/BWKxLQXbHlCxjkfUDGs98yeqUluoAf8DkrzrAnZsWyMAAAAASUVORK5CYII%3D%5D%5Bvar%20appInfo%20%3D%20Components.classes%5B%22@mozilla.org/xre/app-info%3B1%22%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.getService%28Components.interfaces.nsIXULAppInfo%29%3B%0Avar%20versionChecker%20%3D%20Components.classes%5B%22@mozilla.org/xpcom/version-comparator%3B1%22%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.getService%28Components.interfaces.nsIVersionComparator%29%3B%0Aif%28versionChecker.compare%28appInfo.version%2C%20%222.0a%22%29%20%3E%3D%200%29%20%0A%20%20BrowserOpenAddonsMgr%28%29%3B%0Aelse%20BrowserOpenExtensions%28%27extensions%27%29%3B%0A%0A%5D%5Bthis.setAttribute%28%22onclick%22%2C%20%22if%28event.button%20%3D%3D%201%29%20gBrowser.selectedTab%20%3D%20gBrowser.addTab%28%27chrome%3A//mozapps/content/extensions/extensions.xul%3Ftype%3Dextensions%27%29%22%29%3B">Extensions</a>
  • <a href="custombutton://Themes%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIA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3D%5D%5Bvar%20appInfo%20%3D%20Components.classes%5B%22@mozilla.org/xre/app-info%3B1%22%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.getService%28Components.interfaces.nsIXULAppInfo%29%3B%0Avar%20versionChecker%20%3D%20Components.classes%5B%22@mozilla.org/xpcom/version-comparator%3B1%22%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.getService%28Components.interfaces.nsIVersionComparator%29%3B%0Aif%28versionChecker.compare%28appInfo.version%2C%20%222.0a%22%29%20%3E%3D%200%29%20%0A%20%20BrowserOpenAddonsMgr%28%29%3B%0Aelse%20BrowserOpenExtensions%28%27themes%27%29%3B%0A%0A%5D%5Bthis.setAttribute%28%22onclick%22%2C%20%22if%28event.button%20%3D%3D%201%29%20gBrowser.selectedTab%20%3D%20gBrowser.addTab%28%27chrome%3A//mozapps/content/extensions/extensions.xul%3Ftype%3Dthemes%27%29%22%29%3B%0A">Themes</a>

Plus: <a href="custombutton://Add%20New%20Button%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfVCBQLKhDKpHzoAAAAB3RJTUUH1QgUCysC9QffkQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAwBQTFRFTU1NT09PTk5SU1NTVlZWXl5eX19fXl5iX19jYWFnZGRkZWVlZ2dnbW1tbm5uc3NzeXl5bm6Ib2+IcHCJc3OPdHSRdnaTe3uSenqYe3uagICAgoKCg4ODiYmJiIiYjIyckZGRmJiYn5+fgICjh4enhYWrjY2niIiyiYmyioqzjY23j4+1jo66j4+7kZGkkJCmlpazlZW1kJC6kpK7k5O/mJixoKC3pKS4lJTDlJTElpbFmZnMnJzMnp7OpaXFoKDNqKjOo6PQqqrQrKzTrKzW////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgHgAGAAAAEZ0Uk5T////////////////////////////////////////////////////////////////////////////////////////////AGmWRNAAAACqSURBVHjaNY+HDsIwEEMDLXuVvUeB0rI3FAw0QPP/v0SSK5Yi+Z4uso8JrRAgI5ie+BfLKzEF3iCdehqEPIjAagoFlK3FzUxLma0EL6Bs2nL5DLRTgnGOGxvrAMCZCSb3nCwlcultxg/wSwSe8CYGEzugKaIv1VyXUi40AxuZ8lh40n3ku7t+WjW1jlExN1awdPUAlTm8OtbF6BYxSO7RyA8TnT+Q6hsjMj9T0DdAf5t4ZAAAAABJRU5ErkJggg%3D%3D%5D%5BopenDialog%28%22chrome%3A//custombuttons/content/edit.xul%22%2C%20%22%22%2C%20%22chrome%2Cresizable%2Cdialog%3Dno%2Cmodal%3Dno%22%2C%20null%29%3B%5D%5B">Add New Button</a>

Other: userChrome.js script to <a href="data:application/x-javascript;base64,KGZ1bmN0aW9uKCkgew0KICBldmFsKCJjdXN0b21idXR0b25zLmFkZEJ1dHRvbiA9ICIgKyBjdXN0b21idXR0b25zLmFkZEJ1dHRvbi50b1N0cmluZygpCiAgICAucmVwbGFjZSgvY3VzdG9tYnV0dG9uc1wtZWRpdC8sICIiKQogICAgLnJlcGxhY2UoL1wsZGVwZW5kZW50LywgIiIpCiAgICAucmVwbGFjZSgvXD1uby8sICI9bm8sbW9kYWw9bm8iKQogICk7CgogIGV2YWwoImN1c3RvbWJ1dHRvbnMuZWRpdEJ1dHRvbiA9ICIgKyBjdXN0b21idXR0b25zLmFkZEJ1dHRvbi50b1N0cmluZygpCiAgICAucmVwbGFjZSgvbnVsbC8sICJkb2N1bWVudC5wb3B1cE5vZGUiKQogICk7Cgp9KSgpOw0KDQo=">enable you to open more than one CB editor window</a>

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

gdixith
 
Posts: 43
Joined: March 8th, 2006, 1:49 am
Location: India

Post Posted June 16th, 2006, 7:18 am

I love this extenssion
But the clock button is 24 hours mode, I want 12 hours
Please anyone tell me how to change them

jasir

User avatar
 
Posts: 14
Joined: June 16th, 2006, 7:51 am
Location: kerala

Post Posted June 16th, 2006, 8:56 am

Thanks for the terrific extension.
This is much better than the Customizable Toolbar Buttons extension

Toggling toolbars were always a problem for me.
Here are a few i made for that:

<b>View the names of the toolbars and indices on your browser:</b>
(Ofcourse you need to have those extensions installed for then to work)
<a href="custombutton://Tester%5D%5B%5D%5B/*CODE*/%0A//%20%20First%3B%0A%0Afunction%20ListToolbarIndexes%20%28%20%20%29%0A%0A%7B%0A//%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A//%20%20Function%3A%0A//%20%20%0A//%20%20%20%20%20%20Iterate%20through%20the%20available%20toolbars%20showing%20their%20%27index%27%20in%20the%20list.%0A//%0A//%20%20Actions%3A%0A//%0A//%20%20%20%20%20%20Determine%20the%20available%20toolbars%0A//%20%20%20%20%20%20For%20each%2C%20display%20its%20Identity%20and%20index%20in%20the%20list.%0A//%0A//%20%20Parameters%3A%20None.%0A//%0A//%20%20Return%20mode%3A%20None.%0A//%0A//%20%20EDITED%3A%20Changed%20function%20name%20and%20output%20formatting%3A%20RDL%2002/09/05_03%3A23%0A//%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20var%20reportText%20%3D%20%22%22%3B%0A%0A%20%20%20var%20toolbar_count%3B%0A%20%20%20var%20index1%3B%0A%0A%20%20%20var%20old_toolbar%3B%0A%0A//%20%20Obtain%20list%20of%20available%20toolbars%0A%0A%20%20%20var%20toolbars%20%3D%20document.getElementsByTagName%28%22toolbar%22%29%3B%0A%20%0A%20%20%20%20toolbar_count%20%3D%20toolbars.length%0A%0A//%20%20For%20each%20eligible%20toolbar%20in%20the%20set.%20%20%0A%0A%0A%20%20%20for%20%28%20index1%20%3D%200%3B%20%20index1%20%3C%20toolbar_count%3B%20%20index1++%20%20%29%0A%20%20%20%7B%0A%20%20%20%20%20%20%20old_toolbar%20%3D%20toolbars%5Bindex1%5D%3B%0A%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20if%20%28old_toolbar.getAttribute%28%22class%22%29.indexOf%28%22chromeclass%22%29%20%21%3D%20-1%29%0A%0A%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20//%20%20This%20toolbar%20is%20eligible%20so%20collect%20its%20details%0A%0A%20%20%20%20%20%20%20%20%20%20reportText%20+%3D%20%28%20%22Index%20%22%20+%20index1%20+%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22%20....%20%22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20+%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%28%20%28old_toolbar.collapsed%29%20%3F%20%22hidden%20%22%20%3A%20%22visible%20.%22%20%29%20+%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22....%20%22%20+%20%20old_toolbar.id%20+%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22%5Cn%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%29%3B%0A%20%20%20%20%20%20%20%7D%0A%20%20%20%7D%0A%0A%20%20%20//%20%20Output%20the%20report.%0A%0A%20%20%20alert%28reportText%29%3B%0A%0A%7D%0A%0A//%20%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A//%20%20Then%20this%20bit%20calls%20the%20function.%0A//%20%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0AListToolbarIndexes%20%28%20%20%29%3B%0A%0A//%20%20http%3A//lxr.mozilla.org/mozilla/search%3Fstring%3Dtoolbars%0A//%20%20ttp%3A//lxr.mozilla.org/mozilla/source/browser/base/content/browser.js%232294%5D%5B/*Initialization%20Code*/">[Toolbars List]</a>

<b>Toggle Toolbar Buttons:</b>
<a href="custombutton://Bookmarks%20Toolbar%5D%5B%5D%5B/*CODE*/%0Aconst%20toolbar%20%3D%20document.getElementById%28%22PersonalToolbar%22%29%3B%0Atoolbar.collapsed%20%3D%20%21toolbar.collapsed%3B%5D%5B/*Initialization%20Code*/">[Personal/Bookmarks Toolbar]</a>
<a href="custombutton://MyStickies%20Toolbar%5D%5B%5D%5B/*CODE*/%0Aconst%20toolbar%20%3D%20document.getElementById%28%22toolbar-mystickies%22%29%3B%0Atoolbar.collapsed%20%3D%20%21toolbar.collapsed%3B%5D%5B/*Initialization%20Code*/">[MyStickies Toolbar]</a>
<a href="custombutton://Stumble%20Upon%20Toolbar%5D%5B%5D%5B/*CODE*/%0Aconst%20toolbar%20%3D%20document.getElementById%28%22stumbleupon%22%29%3B%0Atoolbar.collapsed%20%3D%20%21toolbar.collapsed%3B%5D%5B/*Initialization%20Code*/">[Stumble Upon Toolbar]</a>
<a href="custombutton://Fox%20Lingo%20Toolbar%5D%5B%5D%5B/*CODE*/%0Aconst%20toolbar%20%3D%20document.getElementById%28%22foxlingo-toolbar%22%29%3B%0Atoolbar.collapsed%20%3D%20%21toolbar.collapsed%3B%5D%5B/*Initialization%20Code*/">[Fox Lingo Toolbar]</a>
<a href="custombutton://Indic%20Me%20Toolbar%5D%5B%5D%5B/*CODE*/%0Aconst%20toolbar%20%3D%20document.getElementById%28%22indicime%22%29%3B%0Atoolbar.collapsed%20%3D%20%21toolbar.collapsed%3B%5D%5B/*Initialization%20Code*/">[Indicime Toolbar]</a>

For any other toolbar:
1. Use the "View the names of the toolbars" button above of get the name of the toolbar(s)
2. Right Click and <b>Clone</b> any of the above Toggle buttons
3. Right Click and <b>Edit</b> the new copy of the button
4. Replace the Button Name (marked in italics) with the new one.
Eg: <b>document.getElementById("<I>PersonalToolbar</I>")</b>
5. You may change the name and the icon also
--<b> Jasir Alavi </b>--
<a href="http://jasir.rediffiland.com/">my blog<a> | <a href="http://jasiralavi.googlepages.com/myconfig">my config</a>

Yan_
 
Posts: 5
Joined: June 15th, 2006, 1:19 am

Post Posted June 16th, 2006, 9:36 am

dougeeebear
In a future version, could you include the "Add new button" option in the buttons context menu?

OK

Would it be possible to store the button configurations in a file other than prefs.js?

JNewbry
storing the code elsewhere (if possible) would be best in future versions.

OK, I will think about it.

michichi
hallo, where can i find the code to duplicate the original ff buttons: ... stop, reload, home, open new tab, open new window, print? i am sure its easy, but as non programmer i have no clue how to do it


You should use DOM Inspector to do it.
1. Open DOM Inspector.
2. Choose File -> Inspect a window -> Mozilla Firefox
3. Choose a tool "Find a node to inspect by clicking on it"
4. Click button you want to duplicate (e.g. Stop Button)
5. Look for its oncommand (or onclick) property (it wiil be BrowserStop();)
6. BrowserStop(); is the code you need.

Buttons with dropdown menus are not so simple..

gdixith
<a href="custombutton://%20%20Clocks%5D%5Bdata%3Aimage/x-xbitmap%2C%2523define%2520xbmtext_width%252040%250A%2523define%2520xbmtext_height%252016%250Astatic%2520unsigned%2520char%2520xbmtext_bits%255B%255D%2520%253D%2520%257B0x00%252C%25200xff%252C%25200xff%252C%25200xff%252C%25200x7f%252C%25200x80%252C%25200x00%252C%25200x00%252C%25200x00%252C%25200x80%252C%25200x80%252C%25200x00%252C%25200x00%252C%25200x00%252C%25200x80%252C%25200x80%252C%25200x00%252C%25200x00%252C%25200x00%252C%25200x80%252C%25200x80%252C%25200x38%252C%25200x0e%252C%25200x38%252C%25200x8e%252C%25200x80%252C%25200x44%252C%25200x11%252C%25200x44%252C%25200x91%252C%25200x80%252C%25200x44%252C%25200x91%252C%25200x44%252C%25200x91%252C%25200x80%252C%25200x38%252C%25200x8e%252C%25200x38%252C%25200x8e%252C%25200x80%252C%25200x44%252C%25200x11%252C%25200x44%252C%25200x91%252C%25200x80%252C%25200x44%252C%25200x11%252C%25200x44%252C%25200x91%252C%25200x80%252C%25200x44%252C%25200x91%252C%25200x44%252C%25200x91%252C%25200x80%252C%25200x38%252C%25200x8e%252C%25200x38%252C%25200x8e%252C%25200x80%252C%25200x00%252C%25200x00%252C%25200x00%252C%25200x80%252C%25200x80%252C%25200x00%252C%25200x00%252C%25200x00%252C%25200x80%252C%25200x80%252C%25200x00%252C%25200x00%252C%25200x00%252C%25200x80%252C%25200x00%252C%25200xff%252C%25200xff%252C%25200xff%252C%25200x7f%257D%5D%5B%5D%5Bthis.hoursMode%3D12%3B%0A//this.hoursMode%3D24%3B%20//%20uncomment%20if%20you%20prefer%2024%20hours%20mode%0Athis.xbmLib%3D%7B%0A%09//%u0434%u043E%u0431%u0430%u0432%u043B%u044F%u0435%u043C%20%u043D%u0443%u043B%u0438%0A%09fixmod%3Afunction%28s%2Cn%29%7B%0A%09%20while%20%28s.length%25n%21%3D0%29%20s%3D%270%27+s%3B%0A%09%20return%20s%3B%0A%09%7D%2C%0A%09//16-%u044B%u0439%20%u043A%u043E%u0434%20%u0432%202%u044B%u0439%0A%09h2b%3Afunction%28s%29%7B%0A%09%20var%20res%3D%27%27%3B%0A%09%20for%20%28var%20i%3D0%3Bi%3Cs.length%3Bi++%29%7B%0A%09%20%20res+%3Dthis.fixmod%28parseInt%28s.substring%28i%2Ci+1%29%2C16%29.toString%282%29%2C4%29%3B%0A%09%20%7D%0A%09%20return%20res%3B%0A%09%7D%2C%0A%09//2-%u044B%u0439%20%u043A%u043E%u0434%20%u0432%2016-%u044B%u0439%0A%09b2h%3Afunction%28s%29%7B%0A%09%20var%20res%3D%27%27%3B%0A%09%20for%20%28var%20i%3D0%3Bi%3Cs.length/4%3Bi++%29%7B%0A%09%20%20res+%3DparseInt%28s.substring%28i*4%2Ci*4+4%29%2C2%29.toString%2816%29%3B%0A%09%20%7D%0A%09%20return%20res%3B%0A%09%7D%2C%0A%09//2%u044B%u0439%20%u043A%u043E%u0434%20%u0432%20%u043C%u0430%u0442%u0440%u0438%u0446%u0443%20%u043F%u043E%20%u0441%u0442%u0440%u043E%u043A%u0430%u043C%0A%09b2matrix%3Afunction%28s%2Crows%29%7B%0A%09%20var%20cols%3Ds.length/rows%3B%0A%09%20var%20ar%3D%5B%5D%3B%0A%09%20for%20%28var%20i%3D0%3Bi%3Crows%3Bi++%29%7B%0A%09%20%20ar%5Bi%5D%3Ds.substring%28i*cols%2C%28i+1%29*cols%29%3B%0A%09%20%7D%0A%09%20return%20ar%3B%0A%09%7D%2C%0A%09%0A%09//2-%u044B%u0439%20%u043A%u043E%u0434%20%u0432%20xbm%0A%09b2xbm%3Afunction%28s%2Crows%29%7B%0A%09%20var%20cols%3Ds.length/rows%3B%0A%09%20var%20res%3D%27%23define%20xbmtext_width%20%27+cols+%27%5Cn%27%3B%0A%09%20res+%3D%27%23define%20xbmtext_height%20%27+rows+%27%5Cn%27%3B%0A%09%20res+%3D%27static%20unsigned%20char%20xbmtext_bits%5B%5D%20%3D%20%7B%27%3B%0A%09%20var%20z%3Ds.length/8%3B%0A%09%20for%20%28var%20i%3D0%3Bi%3Cz%3Bi++%29%7B%0A%09%20%20res+%3D%220x%22%3B%0A%09%20%20for%20%28j%3D1%3Bj%3E-1%3Bj--%29%0A%09%20%20%20res+%3Dthis.b2h%28s.substring%28i*8+j*4%2Ci*8+j*4+4%29.split%28%27%27%29.reverse%28%29.join%28%27%27%29%29%3B%0A%09%20%20if%20%28i%3Cz-1%29%20res+%3D%27%2C%20%27%3B%0A%09%20%7D%0A%09%20res+%3D%27%7D%27%3B%0A%09%20return%20res%3B%0A%09%7D%2C%0A%09//%u0438%u0441%u0445.%20%u0441%u0442%u0440%u043E%u043A%u0443%20%u0432%20xbm%0A%09str2xbm%3Afunction%28str%2Cletters%2Crows%29%7B%0A%09%20var%20m%3D%5B%5D%3B%0A%09%20for%20%28var%20i%3D0%3Bi%3Cstr.length%3Bi++%29%7B%0A%09%20%20var%20tm%3Dthis.b2matrix%28this.h2b%28letters%5Bstr.substring%28i%2Ci+1%29%5D%29%2Crows%29%3B%0A%09%20%20for%20%28var%20j%3D0%3Bj%3Ctm.length%3Bj++%29%7B%0A%09%20%20%20if%20%28i%3D%3D0%29%20m%5Bj%5D%3D%27%27%3B%0A%09%20%20%20m%5Bj%5D+%3Dtm%5Bj%5D%3B%0A%09%20%20%7D%0A%09%20%7D%0A%09%20for%20%28var%20i%3D0%3Bi%3Cm.length%3Bi++%29%0A%09%20%20m%5Bi%5D%3Dthis.fixmod%28m%5Bi%5D%2C8%29%3B%0A%09%20return%20this.b2xbm%28m.join%28%27%27%29%2Crows%29%3B%0A%09%7D%0A%7D%0Athis.letters%3D%7B%0A%20%27%5B%27%3A%27724924924923%27%2C%0A%20%271%27%3A%27fc000021820820821c00003f%27%2C%0A%20%272%27%3A%27fc000072208421083e00003f%27%2C%0A%20%273%27%3A%27fc000072208c08289c00003f%27%2C%0A%20%274%27%3A%27fc000010c524f8410400003f%27%2C%0A%20%275%27%3A%27fc0000fa083c08289c00003f%27%2C%0A%20%276%27%3A%27fc000031083c8a289c00003f%27%2C%0A%20%277%27%3A%27fc0000f8210420841000003f%27%2C%0A%20%278%27%3A%27fc000072289c8a289c00003f%27%2C%0A%20%279%27%3A%27fc00007228a278211800003f%27%2C%0A%20%270%27%3A%27fc00007228a28a289c00003f%27%2C%0A%20%27%3A%27%3A%27f00000440044000f%27%2C%0A%20%27%5D%27%3A%2795555556%27%2C%0A%20%27%20%27%3A%27f00000000000000f%27%0A%7D%0Athis.setTime%3Dfunction%28%29%7B%0A%20var%20time%3Dnew%20Date%3B%0A%20var%20th%3Dtime.getHours%28%29%25this.hoursMode%3B%0A%20var%20th%3Dth%25this.hoursMode%3B%0A%20if%20%28%28th%3D%3D0%29%26%26this.hoursMode%3D%3D12%29%20th%3D12%3B%0A%20var%20h%3Dthis.xbmLib.fixmod%28th.toString%28%29%2C2%29%3B%0A%20var%20m%3Dthis.xbmLib.fixmod%28time.getMinutes%28%29.toString%28%29%2C2%29%3B%0A%20var%20xbm%3Dthis.xbmLib.str2xbm%28%27%5B%27+h+%27%3A%27+m+%27%5D%27%2Cthis.letters%2C16%29%3B%0A%20this.image%3D%27data%3Aimage/x-xbitmap%2C%27+escape%28xbm%29%3B%0A%20this.tooltipText%3Dtime.toLocaleDateString%28%29%3B%0A%20setTimeout%28this.setTime.bind%28this%29%2Cdd%29%3B%0A%7D%0A%0A%20this.disabled%3Dtrue%3B%0A%20this.setTime%28%29%3B">12 hours mode Clocks</a>
(you can uncomment one string in Initialization Code to use 24 hours mode)

galar
 
Posts: 5
Joined: June 16th, 2006, 9:41 am

Post Posted June 16th, 2006, 9:47 am

I'm a newbie so can somebody tell me how to create a button or buttons for going to to top of page & bottom of page?
Or if you know of an extension, can you tell me where to get it?
There used to be one but I can't find it now since I had to re-install Firefox.
Thank You

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted June 16th, 2006, 10:26 am


  • <a href="custombutton://Go%20to%20top%20of%20the%20page%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAEG0lEQVR4AQEQBO/7Af///wAAAAAAAAAAAAAAAAABAQEKAAAACwAAAAkAAAAGAAAAAAAAAPoAAAD3AAAA9f////YAAAAAAAAAAAAAAAAB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zcIAXlxWyG1gNqv2+/u/BgAAAAH///8AAAAAAAAAABb9/f1L2d3tUpOexinW0s4Z8/LuCgAAAAANDhL2Ki4y521iOtcnIxOuAwMDtQAAAOoAAAAAAf///wAAAAAAAAAAAAAAAAAAAAAz/f39NAMDAykAAAAeAAAAAAAAAOL9/f3XAwMDzAAAAM0AAAAAAAAAAAAAAAB/7XUdKger+AAAAABJRU5ErkJggg%3D%3D%5D%5Bcontent.scrollTo%280%2C0%29%3B%0A%0A%5D%5B">Go to top of the page</a>
  • <a href="custombutton://Go%20to%20bottom%20of%20the%20page%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAEG0lEQVR4AQEQBO/7Af///wAAAAAAAAAAAAAAAAABAQEKAAAACwAAAAkAAAAGAAAAAAAAAPoAAAD3AAAA9f////YAAAAAAAAAAAAAAAAB////AAAAAAArKysGC/X1EvQOMCsEDRVfAwAGQgEBARsAAAAA////5f79/cv79uiUDPLQ1fULC+7V1dX6AAAAAAH///8AVlZWBg3s7BnS/Shf/f0CgSlCRwA9QDIAKSQbAPr8AADS1eIAxb/QAODKugADA/5/LgPYofMUFOeqqqr6BAAAAABCCgoapQU3YwMG/3x1h3QAIBcUAPDpAADv4/8A/Pn7ABsLGABbW0oA4z8yAKaVk4HaATcFWwrnnQAAAOADK/LyErr7Nzzm5+CTdI56AB8TFADx6QAA9/QAAPz5/QD6+P4A+/f7APfw+wAMDgoAHScsAM/Fvz72FjrG/sCi6AQWKioX6LDgWypIRwAKCggAhoCoAPr39AD/Af8A//z/AP///gD///8A////AAYHCABHVkkAHC0+AOjj1lsWOCrUBBUbGxrz9tc6WEIyAOzm9gBNQSEAZV03AAAAAAAAAAAAAAAAAAAAAAAAAAAAm6PJAOXm8wAtLioAu9nJOhUbGxoCCxMTGPz6+RUvKBsAGRoWAMfa8QDU2egAAAAAAAAAAAAAAAAAAAAAANTZ6AC6x+kAExEQABwbGQD8+vkVCxMTGAIIEBALAAAAAP4AAAD/AQAARUs9AH+RwQDy8vcAAAAAAAAAAADy8vcAfoi7ADk1MQD///8A/Pz/AAAAAAAIEBALAgQICPkICArv0NnkAAIEAAAIDAgAP0k9AHmJugAAAAAAAAAAAHmEugAuNjcABQkHAAACAADh4OQACAgK7wQICPkEBQkJ6x4iLdvBvM82KWYcAPb4AQAbHRcA4uIdAI6WwQAAAAAAABAXABgaEwD7+f4AAQUCANbW1QAXGiPjBQkJ6wIB/PzfcGc+z9m5uQDd5+wACQwAAP8FAQA1Oi0A4wAMAN/6CgAwNSsAAAIBAAQLAgDq7ewA6NjHAHdvSMcB/PzfA4aMjOwWDgQK9f8RFqOXoiAkNTAAFBILAPv+AQAXGRcAGRgUAAEC/wAABgMA5ujsALemnABYV1DBUUIjqgoTE8EEAAAAAPn//79yYTcVBQEBB5dxgDghREgANzsvACEgHAD6BAEA3dbeAM/GzwDkzcIAXlxWyG1gNqv2+/u/BgAAAAH///8AAAAAAAAAABb9/f1L2d3tUpOexinW0s4Z8/LuCgAAAAANDhL2Ki4y521iOtcnIxOuAwMDtQAAAOoAAAAAAf///wAAAAAAAAAAAAAAAAAAAAAz/f39NAMDAykAAAAeAAAAAAAAAOL9/f3XAwMDzAAAAM0AAAAAAAAAAAAAAAAbzVfefBtHvQAAAABJRU5ErkJggg%3D%3D%5D%5Bcontent.scrollTo%280%2Cwindow.innerHeight*2%29%3B%0A%0A%5D%5B">Go to bottom of the page</a>

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

dougeeebear

User avatar
 
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post Posted June 16th, 2006, 12:22 pm

Yan_,
I don't want to drive you crazy with feature requests right off the first thing, but it would be very nice to be able to open the editor in a new tab as well as in a window.

Doug

galar
 
Posts: 5
Joined: June 16th, 2006, 9:41 am

Post Posted June 16th, 2006, 12:35 pm

Zoolcar9,
Thank You mucho
Galar

Frank Lion

User avatar
 
Posts: 20935
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted June 16th, 2006, 2:09 pm

GoogleBar Lite Toggle Button

<a href="custombutton://GBL%20Toggle%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAC0UlEQVR4nKXTW0/TABQH8L34EXjwxRg+hV+CLwBj7egF3BiggEDi2Fa2dhfGunbt2o4NBrhxFREmmIgBJMTbgxoTEyURs63rLoUpigSV44MJCYK+8PB/O/nlnJxzDABguEgMAGDQuM1TKT/pq5E9qC/mJ5ZjPnJVZrAp0WPG/q7TuM2zgOIn4kn2uj42SOyNDzXryZBVjwdadIVGd6NuZJtzmur+CcgMtj7OWauTQps+H+vS55VOPS10lEaDluJwAC8qNFoWB5BShELQMwBHoezIkKU6Ld3Sn2V8B/rrGOSeRn6tTjqrabFLSwQtquI2FyR3Y0mgTPmwy1R7AnzM2C7JDFYcD9v0rQXfV6guAsAbgMMV+LDGHt2L9xSTwZZcnDbnZQ9aEN3mUoRC0icA60TIGINVJ1hL5f16+AfAcwDYAYB12FkL/bwrdxXGgs3ZBIPmFAbLRxlc4weadk6AsLNRlAaQ3WSwpfwyw3wHfQkA1gA+pY+3ZqgvU3xrfjxAZkd9eF72EqpIkxrnRMsChVz+04HDGBPcqD7sJ4vzwz2VF5nAt7ePQocbc1R1PtqhpcJWdZJrq6TCrXuJAKlHaaIYdiElicavGgDAEOo39QpuTFe8RHEk2FxIRW4WJsUONcXbcndYqzor3dhfHus7Xol3woxgBcVL7PFORD0ZYdBuvMJTaEXy4CWFwQpxf0s+MUhmRwNkdoKzlTIj3ccP5xzHD9J2WJDbYdhL7kdp/PGpNYbsDYsCZaxE6SZNZkhVYYhc3E/mkqxFX0p0w/JUP9wf64U5zgqSG6vKDF53CgjeNtbwDuN2ZAApCR5ME2mzKtG4GvMT5RRvO1qQu2GWt0HcTxwovubRcy8xaG+oDTuNr3gKLfMUqnEuY4F3NRZFD65LlPlz1IXuKt4m6b+/oHGbBtaBtrMO00bIXv8xZK/P8hTyTnQh0zEau3buM10kvwE9lYtujoosfwAAAABJRU5ErkJggg%3D%3D%5D%5B/*CODE*/const%20toolbar%20%3D%20document.getElementById%28%22GBL-Toolbar%22%29%3B%0Atoolbar.collapsed%20%3D%20%21toolbar.collapsed%3B%5D%5B/*Initialization%20Code*/"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAC0UlEQVR4nKXTW0/TABQH8L34EXjwxRg+hV+CLwBj7egF3BiggEDi2Fa2dhfGunbt2o4NBrhxFREmmIgBJMTbgxoTEyURs63rLoUpigSV44MJCYK+8PB/O/nlnJxzDABguEgMAGDQuM1TKT/pq5E9qC/mJ5ZjPnJVZrAp0WPG/q7TuM2zgOIn4kn2uj42SOyNDzXryZBVjwdadIVGd6NuZJtzmur+CcgMtj7OWauTQps+H+vS55VOPS10lEaDluJwAC8qNFoWB5BShELQMwBHoezIkKU6Ld3Sn2V8B/rrGOSeRn6tTjqrabFLSwQtquI2FyR3Y0mgTPmwy1R7AnzM2C7JDFYcD9v0rQXfV6guAsAbgMMV+LDGHt2L9xSTwZZcnDbnZQ9aEN3mUoRC0icA60TIGINVJ1hL5f16+AfAcwDYAYB12FkL/bwrdxXGgs3ZBIPmFAbLRxlc4weadk6AsLNRlAaQ3WSwpfwyw3wHfQkA1gA+pY+3ZqgvU3xrfjxAZkd9eF72EqpIkxrnRMsChVz+04HDGBPcqD7sJ4vzwz2VF5nAt7ePQocbc1R1PtqhpcJWdZJrq6TCrXuJAKlHaaIYdiElicavGgDAEOo39QpuTFe8RHEk2FxIRW4WJsUONcXbcndYqzor3dhfHus7Xol3woxgBcVL7PFORD0ZYdBuvMJTaEXy4CWFwQpxf0s+MUhmRwNkdoKzlTIj3ccP5xzHD9J2WJDbYdhL7kdp/PGpNYbsDYsCZaxE6SZNZkhVYYhc3E/mkqxFX0p0w/JUP9wf64U5zgqSG6vKDF53CgjeNtbwDuN2ZAApCR5ME2mzKtG4GvMT5RRvO1qQu2GWt0HcTxwovubRcy8xaG+oDTuNr3gKLfMUqnEuY4F3NRZFD65LlPlz1IXuKt4m6b+/oHGbBtaBtrMO00bIXv8xZK/P8hTyTnQh0zEau3buM10kvwE9lYtujoosfwAAAABJRU5ErkJggg=="></a>

... good idea, but it didn't scale down very well to 16x16, haha. Probably do it again later, with a more normal button.

:)

Edit : done, gold thing now.
Last edited by Frank Lion on June 17th, 2006, 11:01 am, edited 1 time in total.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Joe Schmoe Junior, Jr.
 
Posts: 4
Joined: June 16th, 2006, 6:20 pm

Post Posted June 16th, 2006, 6:33 pm

I don't know if this is possible, but it would be great to be able to use the icons from themes too. If you did that, just as JNewbury said, it would make any extensions which add simple buttons obselete. Maybe this is already possible?

Anyway, keep up the good work.

Your extension along with menumanipulator, keyconfig, preferential, All-In-One sidebar (lets you add buttons basically anywhere) and Organize Status Bar allow for basically a custom browser. If these extensions came standard, I think the need for more bloated extensions would almost dissappear. People could just download the specific menuitem, button, or keyboard shortcut that they wanted.

gdixith
 
Posts: 43
Joined: March 8th, 2006, 1:49 am
Location: India

Post Posted June 16th, 2006, 7:26 pm

@yan_
thanks for 12 hours clock

@ jasir
I liked your toggle toolbar buttons
I have one question, can I add keyboard shortcut through Keyconfig to these customised buttons, If yes what is the code

@ Zoolcar9
please make one button to go to buttom or to top of the page instead of two buttons

pile0nades
 
Posts: 756
Joined: May 15th, 2005, 2:31 am

Post Posted June 16th, 2006, 7:47 pm

dougeeebear wrote:Yan_,
I don't want to drive you crazy with feature requests right off the first thing, but it would be very nice to be able to open the editor in a new tab as well as in a window.

Doug


Open Button Editor in new Tab

This opens a new tab with the editor, but saving doesn't work. I get this error in console:
Code: Select all
Error: window.opener has no properties
Source file: chrome://custombuttons/content/editor.js
Line: 5
 ----------
Error: this.CB has no properties
Source file: chrome://custombuttons/content/editor.js
Line: 39
Linkify bug numbers - test: bug 258287

pelsta
 
Posts: 1
Joined: June 16th, 2006, 2:06 pm
Location: Poland

Post Posted June 17th, 2006, 1:28 am

I like this extension<br>
My new buttons..
  • <a href="custombutton://Open%20File...%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAABnRSTlMA4ADfAOP5pAGBAAABSUlEQVR4nH2RL09cURDFfyRPrGNk5ZO4boLougoEckn4AOCwJIjKrq2jiiBIlqBfsqvAkEBqwF3CB2AIBnnWHVlx9w+hhavOnTlnZs7MWj698PEbT68xROxvb9ZI8wl7dNqNDnaXyv3h1ui0W8unl3LfvaP2v+3+qz/81QFNue/6GxFtAOsIM73SR2ygwUTLkg0MB3l+22EBGAHW8Y+jNx7Mem/ORgnaG5S35X9PYombeXsD3N4JQu4DtYMMED1upmcyoAYLQy+eM+UYDv5joIofSo6vlmu1SkZEzS00BoSZSXrV+CYOf140GKxnAfF9Qwh68wmxZrW/Nb6TXnNlumS0XxblTZ1zZlWQmZkxOnkEGpkUwNdWSHXcmStGlqRJRsnFlkCZbRv5MDmuIQGOuh855MhkcvlndYfMUgzekWpJJMmifs3qCvAXJRPQV3Dn2h0AAAAASUVORK5CYII%3D%5D%5BBrowserOpenFileWindow%28%29%3B%5D%5B/*Inicjowany%20kod*/">Open File</a>
  • <a href="custombutton://Save%20Page...%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABnRSTlMA4ADfAOP5pAGBAAABB0lEQVR4nHWSoXLDMBBEXzwGZtEftLAsgYWChfqE5AvyC4YtMwwMLDQsDAx0WUinmikpXLELK5BsZ9rmgOZ02tnbPd2ifxOAkU8ZmPTrChg1hnPL4cxuxxjLKUsXNpvoEFCVmiX+RLqAJRnDuRdUuZdMt3BC4anFVFGgN3DKirOAzHfFeo2TSaPLScD/uGkImGoMjBBW2+27KG9jIhnh4V6GoJYVSu9XUho5JkqVCtSYsDsZUjqe2tlag2uczDOia0HGZe7+tVt7f9j3NHT7TnE2XbROXdbe+8fgmolVDgQuf6wsYTqcBr6H7rkFYow0xOEIQWVDtIifX+3Lh6R5tHk/KP4AkOAHFrPpU+I4H2wAAAAASUVORK5CYII%3D%5D%5BsaveDocument%28window.content.document%29%3B%5D%5B/*Inicjowany%20kod*/">Save Page</a>

dougeeebear

User avatar
 
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post Posted June 17th, 2006, 4:27 am

pile0nades wrote:This opens a new tab with the editor, but saving doesn't work. I get this error in console:

It's close...

galar
 
Posts: 5
Joined: June 16th, 2006, 9:41 am

Post Posted June 17th, 2006, 7:44 am

Zoolcar9,
You gave me good buttons for going to top & bottom of page.
How do you do ones for Page Up & Page Down?
galar

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 2 guests