latestchatty / chromeshack

Browser extension containing various scripts that enhance the Shacknews comments
http://adam.hughes.cc/shack/chromeshack/
MIT License
27 stars 16 forks source link

Allow for saving X number of drafts of unposted replies #188

Closed WombatFromHell closed 4 years ago

WombatFromHell commented 4 years ago

This could be triggered from a button next to "Post" (before "Preview", which is an optional script), and trigger a popup with the last few truncated unposted drafts. I'm thinking 5 or 10, should suffice, with an LRU algorithm for auto-dropping old ones when new reply boxes are closed with text in them.

Unfortunately, it's unlikely the draft posts would be exportable via the settings panel, since there's a hard 5 MB limit unless unlimitedStorage permission is set in the manifest (which could, potentially, be phased out in the future). So it would behave the same as the Chatty News script essentially. A soft cache of drafts.

WombatFromHell commented 4 years ago

An initial implementation of this feature was added as of bf002313c0eef35e76906f5383aa6e443ada4986