[Greasemonkey] Explicit ID, Not Namespace

Jeremy Dunck jdunck at gmail.com
Fri Feb 24 14:41:25 EST 2006


On 2/24/06, Lenny Domnitser <ldrhcp at gmail.com> wrote:
> If the
> name of the script changes, but it is still the "same" script, this
> system breaks down.

I assume this is the real-world problem you're trying to address.
...
> This system is backward compatible with the current method. If the @id
> metadata tag is missing, an ID can be generated from the
> namespace/name.
...

It does, however, introduce some complexity in the naming.  What do we
show in the UI?  Or put another way, if the script name is driven to
change, why wouldn't the ID?  Is it the same script?  Does a falling
tree make sound if no one is listening?

> Creating IDs shouldn't be tedious: the ID can be the URL where the
> script is originally published, although tag URIs (RFC 4151) are
> probably a better idea, and they are really easy to generate.

Let's not have the old URI vs. URL debate, eh?  ;-)


More information about the Greasemonkey mailing list