How to sync GreaseMonkey scripts between computers?

21

9

I have some great greasemonkey scripts for FireFox and would ideally have a way to sync them between computers. To some degree, it would even be nice to be able to deploy the scripts to PC's across a network at the office.

How can I sync these between workstations?

RSolberg

Posted 2009-07-15T16:09:48.173

Reputation: 1 178

Please check the updated answer and see if you can accept it or not.

– Ooker – 2015-02-15T14:16:54.730

I wonder if it would be possible to synchronize Greasemonkey scripts (and all related data) using a Google Chrome extension. I'll try to find an extension that can do this. – Anderson Green – 2012-12-12T00:12:02.880

Today, I found out that it's possible to synchronize Greasemonkey scripts in Google Chrome using Tampermonkey: http://forum.tampermonkey.net/viewtopic.php?f=26&t=414

– Anderson Green – 2012-12-28T19:39:53.453

Answers

16

I use Dropbox to sync greasemonkey scripts:

  1. Make a folder: My Dropbox\App Sync\Firefox\
  2. Find your profile directory ([random string] wil be something like 2b5dk3bs)
    • XP: C:\Documents and Settings\[username]\Application Data\Mozilla\Firefox\Profiles\[random string].default
    • Vista: C:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[random string].default
  3. Move the gm_scripts folder to My Dropbox\App Sync\Firefox\
  4. Use the Link Shell Extension to create a Junction called gm_scripts in the profile directory. A Junction is kind of like a symbolic link. To do this, right-click the gm_scripts folder in your Dropbox and click 'Pick Link Source'. Then, in your profile directory, right-click and pick Drop As >> Junction.
  5. For every other machine, delete the gm_scripts folder in your profile, and add the junction as before.

I also use this trick for extensions, mouse gestures redox config, stylish, and menu editor files.

tghw

Posted 2009-07-15T16:09:48.173

Reputation: 854

Sweet idea. I've been wanting to do the same thing but never found a way to do it. – spaetzel – 2009-07-15T16:49:43.410

In Windows 7 you can use "mklink -J" to create junction. – cysiek10 – 2012-02-11T10:37:04.540

Where would the scripts be stored on Ubuntu? – Anderson Green – 2012-12-12T00:16:26.973

7

Since Greasemonkey's December 2013 1.13 release there is an option to use Firefox Sync to keep installed User Scripts the same on all your browsers.

See also a September 2013 blog post: Firefox Sync coming to Greasemonkey.

manuc66

Posted 2009-07-15T16:09:48.173

Reputation: 171

This is the latest updated answer. It was written in 2014, since other answers were in 2009. – Ooker – 2015-02-15T14:15:56.703

4This option only syncs scripts which are installed and updated from a web link. It's pretty useless if you are the author of some unpublished scripts which you want to sync between multiple machines. – Piyush Soni – 2016-04-20T14:04:11.273

1

I'm using Firefox Environment Backup Extension (FEBE) to make backups of ALL Firefox related stuff, including extensions as Greasemonkey

Edosoft

Posted 2009-07-15T16:09:48.173

Reputation: 750

0

I just finished setting up Windows Live Mesh to sync my greasemonkey scripts. This works on Vista SP2 or higher, or Mac OS X 10.5 or newer. Those who want maximum availability to XP and linux should still look at tghw's answer. However, for those who only need to sync to more recent versions of Windwos and OS X, Windows Live Mesh is a good option that does not require creating junctions.

  1. Install Windows Live Mesh on each machine & sign up.
  2. Find gm_scripts directory (C:\Users[username]\AppData\Roaming\Mozilla\Firefox\Profiles[random string].default\gm_scripts)
  3. Select "Sync a folder" in Windows Live Mesh and paste in your gm_scripts path.
  4. You can choose to which machines to sync to, and you can also sync to SkyDrive.
  5. Windows Live Mesh will start syncing.

magnifico

Posted 2009-07-15T16:09:48.173

Reputation: 334