Force update of @require scripts?

1,491 views
Skip to first unread message

Dario Giovannetti

unread,
Dec 11, 2011, 1:33:21 PM12/11/11
to greasemonkey-users
Is there an easy way to force the re-download of scripts included with
@require? Currently I'm requiring some scripts I'm hosting in github
(with links to the raw code), but when I commit some changes, they
aren't detected by GM, even if http://wiki.greasespot.net/Metadata_Block#.40require
says it should.

Related question: in the script management interface, by right-
clicking on a GM script it gives the possibility to check for updates:
how can I take advantage of that feature with my scripts?

Thanks

Anthony Lieuallen

unread,
Dec 11, 2011, 9:44:44 PM12/11/11
to greasemon...@googlegroups.com
On 12/11/2011 1:33 PM, Dario Giovannetti wrote:
> Is there an easy way to force the re-download of scripts included with
> @require?

Not exactly. If the list of remote resources changes, they then will be
re-downloaded. If you have no changes but want to force a download, the
best way is to just re-install the script. If you're editing it anyway,
you can make a dummy change to one of the URLs (append #something or
?something, perhaps).

> Related question: in the script management interface, by right-
> clicking on a GM script it gives the possibility to check for updates:
> how can I take advantage of that feature with my scripts?

Wait for it to be implemented completely/correctly. Then it will "just
work". But it will probably require the script to be served from HTTPS.
And probably all the @require's too. (By default, but that
effectively means it has to if you want users to actually get this feature.)

Dario Giovannetti

unread,
Dec 12, 2011, 11:43:21 AM12/12/11
to greasemonkey-users
On Dec 12, 3:44 am, Anthony Lieuallen <arant...@gmail.com> wrote:
> On 12/11/2011 1:33 PM, Dario Giovannetti wrote:
>
> > Is there an easy way to force the re-download of scripts included with
> > @require?
>
> Not exactly.  If the list of remote resources changes, they then will be
> re-downloaded.  If you have no changes but want to force a download, the
> best way is to just re-install the script.  If you're editing it anyway,
> you can make a dummy change to one of the URLs (append #something or
> ?something, perhaps).

Ah I see, it makes sense now, I don't know why I was stupidly thinking
GM could somehow detect a script has changed upstream without re-
downloading it O_o (maybe downloading checksums?)
Thanks for the useful tips!

> > Related question: in the script management interface, by right-
> > clicking on a GM script it gives the possibility to check for updates:
> > how can I take advantage of that feature with my scripts?
>
> Wait for it to be implemented completely/correctly.  Then it will "just
> work".  But it will probably require the script to be served from HTTPS.
>   And probably all the @require's too.  (By default, but that
> effectively means it has to if you want users to actually get this feature.)

Sounds cool, I'd like to use that feature with scripts hosted on
github, which already serves them with https :)

Reply all
Reply to author
Forward
0 new messages