Lusito / forget-me-not

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

Behavior change request: More specific domains override a generalized domain setting #271

Open PilotWombat opened 3 years ago

PilotWombat commented 3 years ago

Many sites have specific domain cookies that are separate from the main domain. I would like to set different settings for each, and for the more specific domain's settings to be independent from the generalized domain's settings.

Example: '*.google.com' and '*.mail.google.com'. If I leave '*.google.com' without a rule (default, which is "Instantly" for me), I can set '*.mail.google.com' to whatever I want ("On Startup" in my case). This keeps me logged in to Gmail, but doesn't let Google keep tracking cookies or setting third party cookies when I browse off their website. The downside is that this behavior also breaks a lot of websites (not necessarily with my google settings, I'm just using that as an example).

However...If I give '*.google.com' a setting, then no matter what I set '*.mail.google.com' to, it follows the behavior of the generalized domain. So in this example, if I set '*.google.com' to "On Leave" and '*.mail.google.com' to "On Startup", then all google.com cookies are deleted when I leave Gmail for another domain, even though I don't want it to.

So, the behavior change I am requesting is this: If a more specific domain has a different rule than a generalized domain, treat the more specific domain's cookies as if they were a completely separate domain with its own rules.