Skip to content

Instantly share code, notes, and snippets.

@LouCypher
Last active April 15, 2019 16:28

Revisions

  1. LouCypher revised this gist Jun 1, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Makes all [Greasemonkey](https://addons.mozilla.org/addon/greasemonkey/) userscr
    ## How to use this script

    1. Launch [Scratchpad](https://developer.mozilla.org/docs/Tools/Scratchpad).
    2. Copy [this script](https://raw.github.com/gist/3193779/gistfile1.js) and paste it on Scratchpad.
    2. Copy [this script](https://gist.githubusercontent.com/LouCypher/3193779/raw/gistfile1.js) and paste it on Scratchpad.
    3. Set the *Environtment* to *Browser* on Scratchpad.
    4. Execute.

    @@ -16,7 +16,7 @@ If Scratchpad doesn't have *Environtment* menu


    **REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!<br/>
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS!** ヾ( ̄□ ̄)
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS!** 💀


    [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?url=https%3A%2F%2Fgist.github.com%2F3193779)
  2. LouCypher revised this gist Aug 5, 2012. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -15,8 +15,9 @@ If Scratchpad doesn't have *Environtment* menu
    2. Set `devtools.chrome.enabled` value to `true`.


    REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!<br/>
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS! ヾ( ̄□ ̄)
    **REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!<br/>
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS!** ヾ( ̄□ ̄)


    [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?url=https%3A%2F%2Fgist.github.com%2F3193779)
    [![Endorse this!](http://api.coderwall.com/loucypher/endorsecount.png)](http://coderwall.com/p/y9jzyg)
  3. LouCypher revised this gist Aug 5, 2012. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,5 @@
    var prefs = Services.prefs;
    var gmPrefRoot = "greasemonkey.scriptvals";
    var syncPrefRoot = "services.sync.prefs.sync.";
    var rv = {};
    var prefArray = prefs.getChildList(gmPrefRoot, rv);
    var prefArray = prefs.getChildList("greasemonkey.scriptvals", {});
    for (var i = 0; i < prefArray.length; i++) {
    prefs.setBoolPref(syncPrefRoot + prefArray[i], true);
    prefs.setBoolPref("services.sync.prefs.sync." + prefArray[i], true);
    }
  4. LouCypher revised this gist Aug 5, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,7 @@ If Scratchpad doesn't have *Environtment* menu


    REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!<br/>
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS! ヾ( ̄□ ̄)
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS! ヾ( ̄□ ̄)

    [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?url=https%3A%2F%2Fgist.github.com%2F3193779)
    [![Endorse this!](http://api.coderwall.com/loucypher/endorsecount.png)](http://coderwall.com/p/y9jzyg)
  5. LouCypher revised this gist Aug 5, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    ## What this script does

    Makes all [Greasemonkey](https://addons.mozilla.org/addon/greasemonkey/) userscripts settings syncable with [Firefox Sync](http://support.mozilla.org/kb/firefox-sync-take-your-bookmarks-and-tabs-with-you).
    Makes all [Greasemonkey](https://addons.mozilla.org/addon/greasemonkey/) userscripts [settings](http://wiki.greasespot.net/GM_setValue) syncable with [Firefox Sync](http://support.mozilla.org/kb/firefox-sync-take-your-bookmarks-and-tabs-with-you).

    ## How to use this script

    1. Launch Scratchpad.
    1. Launch [Scratchpad](https://developer.mozilla.org/docs/Tools/Scratchpad).
    2. Copy [this script](https://raw.github.com/gist/3193779/gistfile1.js) and paste it on Scratchpad.
    3. Set the *Environtment* to *Browser* on Scratchpad.
    4. Execute.
  6. Zulkarnain K. revised this gist Aug 5, 2012. 1 changed file with 8 additions and 7 deletions.
    15 changes: 8 additions & 7 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,18 @@
    ## What this script does

    Makes all Greasemonkey userscripts settings syncable for Firefox Sync.
    Makes all [Greasemonkey](https://addons.mozilla.org/addon/greasemonkey/) userscripts settings syncable with [Firefox Sync](http://support.mozilla.org/kb/firefox-sync-take-your-bookmarks-and-tabs-with-you).

    ## How to run this script
    ## How to use this script

    1. Open this script with Scratchpad
    2. Set the *Environtment* to *Browser*
    4. Execute
    1. Launch Scratchpad.
    2. Copy [this script](https://raw.github.com/gist/3193779/gistfile1.js) and paste it on Scratchpad.
    3. Set the *Environtment* to *Browser* on Scratchpad.
    4. Execute.

    If Scratchpad doesn't have *Environtment* menu

    1. Enter `about:config?filter=devtools.chrome.enabled` on Location Bar and press Enter
    2. Set `devtools.chrome.enabled` value to `true`
    1. Enter `about:config?filter=devtools.chrome.enabled` on Location Bar and press Enter.
    2. Set `devtools.chrome.enabled` value to `true`.


    REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!<br/>
  7. Zulkarnain K. renamed this gist Aug 1, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. LouCypher revised this gist Aug 1, 2012. 2 changed files with 18 additions and 14 deletions.
    18 changes: 18 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ## What this script does

    Makes all Greasemonkey userscripts settings syncable for Firefox Sync.

    ## How to run this script

    1. Open this script with Scratchpad
    2. Set the *Environtment* to *Browser*
    4. Execute

    If Scratchpad doesn't have *Environtment* menu

    1. Enter `about:config?filter=devtools.chrome.enabled` on Location Bar and press Enter
    2. Set `devtools.chrome.enabled` value to `true`


    REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!<br/>
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS! ヾ( ̄□ ̄)
    14 changes: 0 additions & 14 deletions gm_scriptvals_sync.js
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,3 @@
    /**
    What this script does:
    Makes all Greasemonkey userscripts settings syncable for Firefox Sync.
    How to run this script:
    1. Open this script with Scratchpad
    2. Set the "Environtment" to "Browser"
    3. Execute
    REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS! ヾ( ̄□ ̄)
    **/

    var prefs = Services.prefs;
    var gmPrefRoot = "greasemonkey.scriptvals";
    var syncPrefRoot = "services.sync.prefs.sync.";
  9. Zulkarnain K. created this gist Jul 28, 2012.
    22 changes: 22 additions & 0 deletions gm_scriptvals_sync.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    /**
    What this script does:
    Makes all Greasemonkey userscripts settings syncable for Firefox Sync.
    How to run this script:
    1. Open this script with Scratchpad
    2. Set the "Environtment" to "Browser"
    3. Execute
    REMEMBER TO BACKUP YOUR PREFERENCES BEFORE RUNNING THIS SCRIPT!
    I AM NOT RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS! ヾ( ̄□ ̄)
    **/

    var prefs = Services.prefs;
    var gmPrefRoot = "greasemonkey.scriptvals";
    var syncPrefRoot = "services.sync.prefs.sync.";
    var rv = {};
    var prefArray = prefs.getChildList(gmPrefRoot, rv);
    for (var i = 0; i < prefArray.length; i++) {
    prefs.setBoolPref(syncPrefRoot + prefArray[i], true);
    }