/gm-util

Tool to sync Greasemonkey script with Git repository

Primary LanguageShell

gm-util

Facilitates to develop Greasemonkey scripts in any directory outside browser

Setup

To install:

$ sudo cp gm-util.sh /usr/local/bin/gm-util

To uninstall:

$ sudo rm /usr/local/bin/gm-util

Use

At first time

  1. Create userscript on browser
  2. Discover files: gm-util ls
  3. Look path to file: gm-util look STRING
  4. Make sure you are in your working directory
  5. Get it by first time: gm-util init FILEPATH

Cyclically at current work directory

  1. Make edits
  2. Check the sync with browser: gm-util diff FILE
    • If necessary, sync from browser: gm-util get FILE
    • If necessary, sync to browser: gm-util set FILE
  3. Manage your Git repository