I have my browser setup to automatically delete cookies after the app is closed. I do this for privacy reasons. I would however like to store some cookie information, but not the rest. Example: Every time I start a new session I am forced to read DuckDuckGo's AI slop as the first result to my search query. I have to manually change site settings every new session and I don't like it. I know that I could allow certain sites to store cookies but I don't want to allow DuckDuckGo to store any other information. Is there any way I could save site settings in a static file that is reloaded every time I open my browser? I use both Chromium and Firefox on linux and android.
I've not done it myself, but I'm pretty sure you can configure
Cookie AutoDelete
or similar extensions to block everything except specific cookies for any given domain. I don't think you could accomplish it with just a file saved locally, the browser isn't generally able to read local files without using an extension.The only problem with not deleting all cookies with some automatic tool is it will make it easier to fingerprint you. Anything difference with your browser's behaviour is fingerprintable.
Also, check your this section from the Arkenfox wiki (made by experts on browser fingerprinting):