Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.
Changing your Avatar.
The only way to currently change a forum avatar is through Gravatar.com. The email address used for your Userstyles.org account must be one of the email addresses that is registered to your Gravatar account.

Storing user style settings - JS/HTML5?

edited August 2017 in userstyles.org Chrome
If I am correct, in the old version of the site, JS was used to store user settings for a style in a cookie. This was useful when a user returned, since it loaded their preferred settings.

Now, with the new site, a page reload with assign the default settings for a style. So, big question is whether there are any plans to change this, use JS again or use HTML5? I've had users complaining, because my style allows so much customization, that without storage, they are in danger of losing their settings when they update.


HTML5 would be quite easy to implement using local storage:

store:
localStorage.setItem('someName', 'savedData');
retrieve:
var data = localStorage.getItem('someName');

Comments

Sign In or Register to comment.