Deploying GreaseMonkey script

602 views
Skip to first unread message

MonkeyMargie

unread,
Jul 16, 2012, 3:21:48 PM7/16/12
to greasemon...@googlegroups.com
OK, so now that I've built my GreaseMonkey script, I want to deploy it at several sites. Do I just put it on our intranet site, and have users access it from there? How does this work? Will they get updates automatically if they enable the updates flag?

Anthony Lieuallen

unread,
Jul 16, 2012, 4:50:00 PM7/16/12
to greasemon...@googlegroups.com
On Mon, Jul 16, 2012 at 3:21 PM, MonkeyMargie <abc...@gmail.com> wrote:
OK, so now that I've built my GreaseMonkey script, I want to deploy it at several sites. Do I just put it on our intranet site, and have users access it from there? How does this work? Will they get updates automatically if they enable the updates flag?

Put it anywhere users can access it.  By default, updates require HTTPS for security.

MonkeyMargie

unread,
Jul 17, 2012, 11:22:54 AM7/17/12
to greasemon...@googlegroups.com
Thanks, Anthony. So basically I do the following:
 
1. Write the script.
2. Use the @downloadURL metadata in my script to define the location.
3. Install GreaseMonkey all users' machines in all sites.
4. When these users go to the web page I define in @downloadURL, it will automatically install and run my script.

Anthony Lieuallen

unread,
Jul 17, 2012, 11:27:31 AM7/17/12
to greasemon...@googlegroups.com
Mostly:

On Tue, Jul 17, 2012 at 11:22 AM, MonkeyMargie <abc...@gmail.com> wrote:
1. Write the script.

Yes of course =)
 
2. Use the @downloadURL metadata in my script to define the location.

This shouldn't be necessary.  If it's not set, it's just whatever URL the script really was downloaded from.  It's very rare that you need to set this explicitly.  Real cases would be if you're moving from one hosting platform to another, one transitional version at the old location pointing users to the new one.
 
3. Install GreaseMonkey all users' machines in all sites.

Also yes of course.
 
4. When these users go to the web page I define in @downloadURL, it will automatically install and run my script.

Given the phrase "web page": no.  When they navigate to some URL ending in ".user.js" then Greasemonkey will open the install dialog.  You can certainly have a web page with a link.  Or maybe even a <meta> redirect (not sure about this one though).

Hans Henrik Bergan

unread,
Jul 20, 2012, 2:38:24 PM7/20/12
to greasemon...@googlegroups.com
btw if its ok to have the script public,
userscripts.org is the de-facto distribution channel for public greasemonkey scripts
Reply all
Reply to author
Forward
0 new messages