Preference window for userscripts

By devnull69 Last update Sep 30, 2009 — Installed 22,307 times.

Preferences not saving

in
Subscribe to Preferences not saving 2 posts, 1 voice



MikejSmitty User
FirefoxWindows

So I added the code to my script, but when I run USP.getValue('userID') it only gives me back the default value. The new value shows up in the preference window when I go back to it, but USP.getValue only ever returns the default.

Also, GM_getValue('userID') is undefined when called.

Any ideas?

 
MikejSmitty User
FirefoxWindows

Turns out it was just a problem with pulling the variable from inside a JQuery function. Declared and set it globally and it works now. Thanks for the script!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel