Lusito / forget-me-not

Make the browser forget website data, except for the data you want to keep.
zlib License
226 stars 25 forks source link

Remove history since start of session #18

Open MarkNorden opened 6 years ago

MarkNorden commented 6 years ago

It is possible with session api to get all domains/urls visits since the current session (getRecentlyClosed) and to then delete only those entries using the deleteUrl api in combination with the history.search api (deleteUrl). This solution would remove all previous history of visited urls instead of the latest visits. A way to overcome this would be to use the deleteRange api instead, starting at session start, and then manualy adding non-blacklisted items through addUrl, providing the original visit time as the visitTime option.

Lusito commented 6 years ago

So, you are proposing to remove all within the specified time frame and then re-add those wrongfully removed? That is a risky move. I would rather try and see if mozilla is willing to add a new removal function to the API which combines both delteUrl and deleteRange.

I've created an issue on bugzilla for this: https://bugzilla.mozilla.org/show_bug.cgi?id=1425570 Let's see what mozilla has to say about this.