Cookie-AutoDelete icon indicating copy to clipboard operation
Cookie-AutoDelete copied to clipboard

[FEATURE REQUEST] Load site whitelist from the existing browser settings.

Open pvaret opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Chrome already provides decent controls for cookie lifetime: by default I block all cookies, but I grant exceptions on a case by case basis. On a few sites, I keep the cookies forever. On most sites, I allow cookies temporarily. Unfortunately the only level of temporary that Chrome understands is "until my browser exits", which is not sufficient because this is 2020 and I never exit my browser.

CAD helps me clear cookies until I close a tab, which is already 80% of what I need. The remaining problem is with sites where I want to accept cookies and keep them forever. When I want to allow cookies from a site and keep them forever, now I need to:

  • configure Chrome to allow cookies from that site and keep them forever;
  • and whitelist that site in CAD too.

It would be great to only have to do one of those things.

Describe the solution you'd like

Chrome comes with three cookie settings lists: "Block", "Clear on exit", and "Allow". CAD should just auto-whitelist sites in my browser's "Allow" list.

Describe alternatives you've considered

  • I looked for other extensions that would delete all my "clear on exit" cookies when the corresponding tab is closed, which would do exactly what I want, but couldn't find one. CAD seems to be the closest thing.

  • Alternatively I could just manually synchronize CAD and my browser's settings, and keep them manually synchronized, forever. That would work but suck a little. :)

  • I could also just accept cookies by default instead of blocking them by default with case by case exemptions. I just really don't want to do that.

Additional context

None, CAD is already very cool and I just hope to see it become perfect for me. :)

pvaret avatar May 17 '20 16:05 pvaret

While Firefox doesn't have it, there may be an API made for what you're requesting for Chrome, which would also require another permission. (https://developer.chrome.com/extensions/contentSettings#type-CookiesContentSetting)

I'll take PRs for this but it will be a while as it is not available on Firefox yet.

kennethtran93 avatar May 18 '20 19:05 kennethtran93

I did some digging and found that there is a Firefox API to access these setting: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/privacy/websites

I really want this feature!

GravisZro avatar Jan 01 '23 14:01 GravisZro

I did some digging and found that there is a Firefox API to access these setting: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/privacy/websites

I really want this feature!

This only accesses the browser global privacy settings (e.g. getting/setting cookie policy, first party isolate, tracking protection mode, third-party cookie) - no site whitelist of any kind, so doesn't really do much for us at all. We originally had privacy permission just to access first party isolation settings, but dropped it in favor of just testing for a specific condition (less permission needed).

kennethtran93 avatar Jan 02 '23 06:01 kennethtran93