{"id":20221247,"url":"https://github.com/jannis-baum/cookie-cleaner","last_synced_at":"2026-03-12T09:47:18.566Z","repository":{"id":115023054,"uuid":"427732827","full_name":"jannis-baum/cookie-cleaner","owner":"jannis-baum","description":"Clear non-whitelisted Safari cookies and local website data","archived":false,"fork":false,"pushed_at":"2025-02-15T21:56:45.000Z","size":16,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T22:26:09.187Z","etag":null,"topics":["browsing","cookies","privacy","safari","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jannis-baum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-13T17:43:01.000Z","updated_at":"2024-09-20T17:35:58.000Z","dependencies_parsed_at":"2023-09-28T10:17:06.076Z","dependency_job_id":null,"html_url":"https://github.com/jannis-baum/cookie-cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jannis-baum%2Fcookie-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jannis-baum%2Fcookie-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jannis-baum%2Fcookie-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jannis-baum%2Fcookie-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jannis-baum","download_url":"https://codeload.github.com/jannis-baum/cookie-cleaner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241661443,"owners_count":19998951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browsing","cookies","privacy","safari","swift"],"created_at":"2024-11-14T06:52:39.073Z","updated_at":"2026-03-12T09:47:18.512Z","avatar_url":"https://github.com/jannis-baum.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cookie-cleaner for Safari\n\nHarness the benefits of \"Private Browsing\" without losing out on features like\nbrowsing history, an undo button, trusted log-ins and so much more!\n\n`cookie-cleaner` erases any non-whitelisted cookies and local storage.\n\n## Usage\n\nClone this repository and\n\n```shell\nmake all\n```\n\nTo run, ensure Safari isn't running and then execute\n`.build/release/cookie-cleaner WHITELIST` where `WHITELIST` is a the path to a\ntext file.  Cookies and local data whose identifiers match the regular\nexpression on any line of this file will be ignored, while all others will be\ndeleted.\n\nAs an example, to keep log-in data for `github.com`, simply add the line\n\n```plain\ngithub\n```\n\nto your whitelist file. Note that the application you are launching\n`cookie-cleaner` from needs to have *Full Disk Access* enabled in the system\n*Security \u0026 Privacy* settings. Read below for an explanation why.\n\n### Creating an alias\n\nTo use `cookie-cleaner` more comfortably, you can, for example, create an alias\nto run it with your whitelist-file in your shell. For `zsh`, you could add the\nfollowing to your `~/.zshrc`\n\n```zsh\nalias cookie-cleaner=\"\u003crepository path\u003e/.build/release/cookie-cleaner \u003cwhitelist file path\u003e\"\n```\n\nand then run it simply with `cookie-cleaner`.\n\n## Running `cookie-cleaner` automatically\n\nYou can have run `cookie-cleaner` automatically when you close Safari or when\nyour Mac goes to sleep with trigger-based automation tools such as\n[Hammerspoon](http://www.hammerspoon.org) or\n[BetterTouchTool](https://folivora.ai). For this to work, the automation tool\nneeds to have *Full Disk Access* enabled.\n\n## Note on Full Disk Access\n\nmacOS sandboxes files downloaded from the internet for security reasons and does\nthe same to the main cookie file that this tool modifies (by deleting\nnon-whitelisted cookies). Files sandboxed in this way can only be accessed and\nmodified through a program that is granted *Full Disk Access*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannis-baum%2Fcookie-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjannis-baum%2Fcookie-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannis-baum%2Fcookie-cleaner/lists"}