Editing after capture does not remove files referenced only by deleted elements #351
Labels
enhancement
New feature or request
someday
Not planned to do in the near future, mostly due to limited resources
Capture a page with images.
Open the captured page from scrapbook sidebar.
Use "DOM Eraser" from WSB toolbar to remove (some of) the images.
Use "Save" from the WSB toolbar.
Even if the "index.html" no longer references the images, the image files remain in place. It happens with "folder" and "htz" with backend server.
If editing is done before capture, the erased image files are never stored.
However it is not always possible to remove all unwanted elements on live website who have JS code that constantly loads more and more stuff.
The original Scrapbook used to remove files that were no longer linked/used, so I kind of expected the same behavior.
You might consider this feature request.
If my observations are correct, on "Save" changes are done in place, so leaving old stuff is just side effect"
I would consider it an improvement, if on "Save" a new archive is created and the old one is moved to "recycle bin". (Might be good idea to do that at recapture too.)
The text was updated successfully, but these errors were encountered: