I have a JavaScript bookmarklet that lets me edit a pages body:
document.body.contentEditable = true;
I would like to make a bookmarklet that allows me to save these edits so if I refresh the page it will keep them, or display them when I click the bookmarklet.
I know local storage exists, but I'm not sure how to update corresponding elements using local storage.
Any ideas?
I found a way. Using JavaScript I can just save the entire HTML body, then load that and replace the pages original content with the saved HTML.
It uses an IF check to see if the page is currently editable, then it will save the data. If it is not editable, then is will load that data.
The JavaScript:
the actuall bookmarklet: