Some news....
I completely revisited bookmarks and options.
Thanks to JSON, now options uses only one entry in localStorage.
1) You can enter a bookmark description (if you want) when saving one.
If you save a bookmark using autosave or quick save, then it skips this step adding a default description ("Autosave" or "Quick save").
2) Bookmark menu is dynamic:
- Add bookmark is grayed out if the page already has a bookmark
- Jump to bookmark is grayed out if the comic doesn't have any bookmark
- Remove bookmark is grayed out if the page isn't bookmarked
All the code has been reworked to improve the performance.
Everything will be minified in the release (src will be non-minified!)
Next: rework the deletions, add pinch-to-zoom, revisit shell scripts.
In the meanwhile: does anybody know a JSON parser to be used in shell scripting?
Thanks!!