Large

Simplepedia

By Grant Stavely Last update Jul 16, 2010 — Installed 21,596 times.

Can't change GM values in about:config

in
Subscribe to Can't change GM values in about:config 3 posts, 2 voices



iaindalton User

Because you use GM_setValue without checking if it already has a setting, I can't set preferences for Simplepedia from about:config (which would be useful because I wouldn't have to edit the script everytime I get the latest version. I suggest something like this:

if (typeof GM_getValue('user') !== 'boolean') {
    // actual boolean value makes more sense to me
    GM_setValue('user', false);
}

 
Grant Stavely Script's Author

Thanks for the advice - first time using them and that makes sense.

 
Grant Stavely Script's Author

I added wrappers for the options, thanks again.

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