Better way to organise the Whitelist feature

in
Subscribe to Better way to organise the Whitelist feature 3 posts, 2 voices



mlevit Scriptwright
FirefoxWindows

Hey,

I was looking over the code and thought it might be better instead of just having
(var whitelist) with all the whitelist app id's in there you should also add a secondary (var customWhitelist) where users can add their own id's.

You could then combine the two and run your script as normal.

What this would allow though is an easier way for users to migrate their custom whitelists to new versions of the script.

Thanks

 
steeev Script's Author
FirefoxWindows

yes good idea, i was thinking about that. definitely going to try and make the whitelist editing more user friendly in future versions.

 
mlevit Scriptwright
FirefoxWindows

Hey mate,

I just implemented this into my script but you could use GM_setValue() and GM_getValue() to create Greasemonkey variables that can be found in about:config.

That way you can have two, one for the scripts default whitelist and one for the users custom whitelist. The whitelists will always be kept in history even if the script is updated.

http://wiki.greasespot.net/GM_getValue
http://wiki.greasespot.net/GM_setValue

Thanks

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