-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save options in localstorage #3
Comments
Good idea! |
As user, I'm much happier with PHP Sessions and cookies, than with that new localstorage thing that always add new permanent trash to my browser profile 'storage' folder, and is not cleaned with 'clean cache/cookies' command. |
Though making localStorage optional & clear-able is a good idea, I'm sure many websites you visit already save on your HD. |
@Rikk, if you want to make sure that no trash is added to your browser profile, use private windows or set your browser to clear everything when closing. This tool would also only use localstorage if you actually change the options. Cookies are a bad alternative, because they're sent to the website, even when not needed. And in this case they aren't. @tomByrer, the localStorage API is simple to use, and all browsers in use except Opera Mini supports it (localForage doesn't support Opera Mini either). |
Actually, in Firefox, sites using this storage thing will create this folder structure inside user profile and nothing can clean and delete them (unless manually):
I found many old (and ignored) bugs around this topic, eg., I hope the adoption of this kind of storage remains small until nasty bugs generating trash inside profile are fixed. I talked about PHP Sessions cause setting some option can be easy as a few lines for the current browser session. Although I don't know if we can host php pages in this github gh-pages. |
@Rikk, using a private window, or clearing all history upon closing the browser, will solve this. I also don't think that saving 1,2 kB of data on people's computers, where they actually change the options is a big deal. This will be implemented. If you want a version without localstorage, you're free to fork the project. |
No problem, I already forked it, and you used one of my commits without even referring me. Thanks for seem it as useful. |
@Rikk, I guess I should have mentioned you as giving the idea, but it felt like such a small commit that it didn't matter. |
no problem, it really didn't matter. |
Yup, it's possible, and not that difficult, but for such small change I didn't think it was worth it. |
Changed options should be kept upon reload. The best way to solve that would probably be to save them in localstorage.
The "reset" button should reset the options to our defaults.
The text was updated successfully, but these errors were encountered: