Skip to content

Instantly share code, notes, and snippets.

@supahgreg
Created April 9, 2011 20:46
Show Gist options
  • Select an option

  • Save supahgreg/911759 to your computer and use it in GitHub Desktop.

Select an option

Save supahgreg/911759 to your computer and use it in GitHub Desktop.
GM_setValue return test
// ==UserScript==
// @id gmsvrettest@phob.net
// @name GM_setValue return test
// @namespace http://phob.net
// @description GM_setValue return test
// @include http://phob.net/*
// ==/UserScript==
GM_log("Setting scriptval 'isGood' to true");
var val = GM_setValue("isGood", true);
GM_log("isGood? " + val + " (" + typeof(val) + ")");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment