Some Functionality may be broken!

| QuHno's blog | See Help, Acknowledgements, TOS below the Button Generator | Some Buttons created with the Button Generator

JavaScript Button Generator for Opera 12 and older (0.9.28)

The Button:

link text (optional)

Code for pasting (Ctrl+C)



Most parts of it should work. If you encounter any bugs or if you can improve the code you are welcome to drop me a line in the Blog post comments :)

How to …

… convert a URI encoded JavaScript bookmarklet to a button:

  1. Select the "Go to page (JavaScript)" in the Command select-box.
  2. Paste the bookmarklet address (URL) into the 1st parameter field.
    Hint: It is URI encoded, if it starts with: javascript%3A or javascript: and contains other values like %20, %22 etc.. If it doesn't contain these values after inserting into the 1st-parameter field, please use the normal way below.
  3. Type a name into the Button name field.
  4. Select one of the Icons names from the select-box OR click on the "»" and "Expand list" buttons and click on the icon you like to use OR if you use a custom skin with additional icons and icon names, type an icon name that exists in the skin.ini (perhaps you'll have to unzip the skin file to see it) in the Icon alias field.
  5. Click the button to install the button.

… build a normal button:

  1. Select a Command.
  2. Insert Parameters as needed. You can enter formatted, non-encoded JavaScript code as 1-st parameter of every Action too.
    Hint: If you want to embed a normal, non-encoded JavaScript in the first parameter of one of the actions, please remove the string "javascript:" at the beginning of the code!
    Please insert the parameters without "quotes", they will be added automatically. I use the quotes for a primitive JavaScript detection and switch to the appropriate escape sequences if I think it is JavaScript. You may even use double quoting like " ' ' " or ' " " ' in your JavaScript code for the 1-st parameter, comments too, but they will be stripped as superfluous whitespace too (not in literal Strings).
  3. Type a Button name for the button or button action when building toggle buttons. If you leave it blank you should select an image, if you want to use the button ;-)
  4. Select an Icon for the action.
  5. For further actions select an Operator and repeat the above steps.
  6. Click the button to install the button

If you encounter any Bugs or if you can improve the code you are welcome to drop me a line in the Blog post comments :)

For Help on the Commands (Actions) see operawiki.info/AllActions or operawiki.info/AdvancedToolbarINIGuide. For more than 2000 "ready to use" buttons see homepage.hispeed.ch/ttt-o/

For the most complete and best commented List of all Opera actions and skin elements including version information see Vectronics page

Thanks and Licenses

This page

All content on this page is published under the GNU Public License unless stated otherwise by the individual copyright holders. For the individual "terms of use" please visit the pages as stated below.

All modifications of the original scripts, the double escaping and bulilding of the JavaScript button code Copyright © 2010 by Roland Reck (aka QuHno).

Opera Button Maker for Opera 9 / 10

The main basis of this script. Contains all Opera commands and builds the skeleton of the Buttonator

Code taken from http://www.puzzleclub.ru/files/button_maker/, Copyright © 2007- 2010- by M. Samokhvalov (Mikivanch). Please see http://www.puzzleclub.ru/files/button_maker/ for terms of use.

Remove JavaScript Comments

Nomen est omen

Code taken from http://james.padolsey.com/javascript/removing-comments-in-javascript/, Copyright © 2004- by J. Padolsey. Please see http://james.padolsey.com/terms-conditions/ for terms of use.

Replace Problem Characters

Doublequotes and other Characters not allowed as 1-st parameter in Opera button code.

Thanks to A. Ruzanov (Lex1) for the infos http://my.opera.com/community/forums/findpost.pl?id=2883796

Special Thanks to

Vectronic who helped me a lot in speeding up and improving the script!