[greasemonkey] [Greasemonkey] New button added to GreaseMonkey
manage window
Michael Bierman
greasemonkey at thebiermans.net
Fri Jun 10 17:04:41 EDT 2005
I like the idea of a button to create scripts from scratch. I think that's
very handy!
Michael
-----Original Message-----
From: greasemonkey-bounces at mozdev.org
[mailto:greasemonkey-bounces at mozdev.org] On Behalf Of Juan Santandreu
Sent: Friday, June 10, 2005 1:22 PM
To: greasemonkey at mozdev.org
Subject: [greasemonkey] [Greasemonkey] New button added to GreaseMonkey
manage window
Hello, it's the first time I write to the GM mailing list. As you'll
guess my English is quite bad (I'm from Spain) so be patient and read
carefully :).
As the subject says I've added a button to the GM interface. The button
is placed beside the edit button in the manage window ans it's useful for
creating a new script directly from the GM user interface.
What it does is to ask the user for some metadata about the script:
name, description, namespace, includes/excludes, and the file name, then
creates the script file (with the metadata) prepared for being edited, and
inmediatly calls the editButtonHandler function, wich opens the default
system editor.
It still needs a good user interface, the current one is just a secuence
of prompts, and surely some bug fixing and exception catching, but it's
already fully functional (well, at least on my pc ;)). I'm trying to improve
the script in the next days, but I'm very unexperienced in XUL and FireFox
programming, so I'd like to have some help.
The two files attached are a copy of the last revision of manage.xul
published (manage.xul), and a copy of the file included in greasemankey
0.3.3 (manage_old.xul), both with the code of the new button.
More information about the Greasemonkey
mailing list