22

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?

AnnanFay
  • 1,015
RSolberg
  • 1,240

3 Answers3

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
  • 874
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.

Arjan
  • 31,511
manuc66
  • 171
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
  • 334