Hi,
It would be very nice to have access to a script metadata in order to
write generic code.
For example if we could get access to the function GM_getMetadata we
could write something like that :
var name = GM_getMetadata('name');
var version = GM_getMetadata('version');
if(name && version)
alert('welcome to the script ' + name + ' v' + version);
I know this example is not very interesting, but that function would
enable to write less configuration in scripts like
http://userscripts.org/scripts/review/45988 or a version checker
script.
Moreover if you consider to implement this function, it would also be
great to have something like GM_listMetadata to get all the metadata
set in a script.
Cheers,
Aurélien
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.