Presumably it is also possible to make bookmarklet keymarks, whereby you supply parameters to javascript code to be executed, in the address bar. That could probably be quite useful somewhere.
Anyway, what I really want ATM, is to be able to make a piece of code I can run very readily, without having to make a damn extension. Having it available by the context menu would be nice, but I can't find anything on programming that via javascript, I keep finding bloody web-design pages where people are emulating it in DHTML for their pages :( Having it available via hotkeys would be nice, but Firefox apparently doesn't give you the ability to do that. Getting the code via keymarks would be far too clunky in this case, really. So my best bet appears to be making a bookmarklet that's right at the top of the bookmarks menu.
(AH! Or, I could reenable the bookmarks toolbar, and put the bookmarklet in there??)
Now I just have to find something useful about the bloody things!!
Well I found these, quite informative.
javascript:void(prompt('pants','no')) was a little bit of test code I did, pops up a dialogue box with a field, with default text in there. If you leave out the void(), it loads a page after with the result of the prompt instead. If you leave out the 2nd argument to the prompt, there is no default text. I ought to see if there's other options for this sort of thing, it'd be nice to have a multi-field dialogue.
In terms of code to go in them, AJAX code would be very useful for what I want to do, interfacing with a local CGI app, run on my own machine. Most probably not full-on XML Ajax, just a bunch of fields in most cases. Or I suppose I could add bookmarklet interfaces to the web-apps here on Neologue.
Meanwhile, these links really belong on a page about making FF Extensions, which I'm not in any mood to try making.