Rayquaza01 / HistoryCleaner

Firefox addon that deletes history older than a specified amount of days.
MIT License
78 stars 6 forks source link

[Feature request] Immediate history deletion #18

Closed jasonbassford closed 2 years ago

jasonbassford commented 2 years ago

Currently, you have to set a number of days after which history is deleted. But if you set it to 0, the add-on itself is disabled.

I came across this add-on because I was looking for a way to disable my download history, but not set private-browsing mode, which also disables pinned tabs. (Ironically, that's all that clearing "Remember browsing and download history" does, and if you tell Firefox to remember again, it turns out that it never forgot your pinned tabs in the first place.)

However, the minimum number of days I can select is 1, which means that my history is still remembered for up to a day. It would be useful if there were a method of having the add-on simply delete my history immediately. I know there is a button that does that, but having this happen automatically would be much more useful.

Typically, I would expect setting the number of days to 0 to immediately delete my history, and setting it to -1 to be what disables the add-on. But since that would cause a problem for people who update to a newer version, it can't be the method to implement. People currently using 0 and expecting it to mean the add-on is disabled need to have continuity. So, perhaps strangely, I suggest a setting of -1 to mean that history is immediately deleted. Either that or a new option for the purpose.

Rayquaza01 commented 2 years ago

This is added in the new version (1.4.0). On the options page, there is now a "Behavior" option that decides what the extension does when it triggers. "Disabled" disables the extension, "Delete history older than..." is the regular behavior, and "Delete all history" will delete all history when the extension triggers.

jasonbassford commented 2 years ago

Thank you! At least for me, this is a fantastic new feature.