Skip to content

Instantly share code, notes, and snippets.

@arantius
Created December 23, 2010 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arantius/753280 to your computer and use it in GitHub Desktop.
Save arantius/753280 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name GM_setValue Test
// @description Test what happens to GM_setValue() values, across installs.
// ==/UserScript==
var i = GM_getValue('i', 0);
i++;
GM_setValue('i', i);
dump('GM_setValue Test has run ' + i + ' times.\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment