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

add delay option for "Instantly" #185

Closed rubaboo closed 4 years ago

rubaboo commented 4 years ago

Could you add an option of allowing the cookie to be written but then deleted after some delay. Because "Instantly" prevents some things on a page from starting.

Lusito commented 4 years ago

In theory that would be possible, but I don't think it's a good idea, as the time really varies depending on how long it takes for the website to get to the point where it doesn't need them anymore. What's wrong with using the "on leave" option?

rubaboo commented 4 years ago

To clarify, I was thinking of adding an option "Delay for instant cleanup in seconds:", but I agree, this option would only make sense in a cleanup rule, not in global settings. So, if you can add this to the "Create rule" dialog, that would be great.

rubaboo commented 4 years ago

A particular use case is as follows (it's a bit of a "cheat", if you don't mind). There is a media player that limits the number of times I can "preview" a track. If I set to clean cookies on leave, then I have to close the tabs for the domain and reopen the ones I want again. But if I clean instantly, the player does not start at all. So I need to let it save the cookie, but delete it once the player has started (so I'm guessing a delay of less than a second would be enough).

Lusito commented 4 years ago

Adding a delay per rule is not easily added, so I'm hesitant to do this. Have you tried using the "Clean this Domain" button on the first tab of the popup? It's just two clicks.