This is a library to userscripts (or extensions) which will enable you to inject your userscript into the page and still have access to functions like GM_setValue.