[Greasemonkey] Suggestion: @min-version attribute

Evan Martin evan.martin at gmail.com
Tue Apr 12 10:30:29 EDT 2005


On Apr 12, 2005 6:58 AM, Mark Pilgrim <pilgrim at gmail.com> wrote:
> Bad bad bad.  Use this instead:
> 
> if (!GM_xmlhttpRequest) { alert('You need to upgrade Greasemonkey to
> run this script.'); return; }
> 
> Test features, not versions.

But that puts the burden on script authors to be aware of all previous
incarnations of the GM API, to know which functions might be gone on
older versions.

I suppose API docs would be helpful.  :P


More information about the Greasemonkey mailing list