Debian Codegraph @

cleaners/safari.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 SPDX-License-Identifier: GPL-3.0-or-later
5 Copyright (c) 2008-2026 Andrew Ziem.
6
7 This work is licensed under the terms of the GNU GPL, version 3 or
8 later. See the COPYING file in the top-level directory.
9
10
11 These changes reorganized where Safari stores site data. For a profile that used only modern
12 Safari, WebKit/WebsiteData/{LocalStorage,IndexedDB} may be empty, but some profiles may have
13 data there from older Safari versions.
14
15 https://trac.webkit.org/changeset/291909/webkit
16 https://trac.webkit.org/changeset/289878/webkit
17
18 -->
19 <cleaner id="safari" os="macos">
20 <label>Safari</label>
21 <description>Web browser</description>
22 <running type="exe" os="macos" same_user="true">Safari</running>
23 <option id="cookies">
24 <label>Cookies</label>
25 <description>Delete cookies, which store login information, website preferences, and tracking identifiers</description>
26 <action command="cookie" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies"/>
27 <action command="cookie" search="glob" path="~/Library/HTTPStorages/*.binarycookies"/>
28 </option>
29 <option id="cache">
30 <label>Cache</label>
31 <description>Delete the web cache, which reduces time to display revisited pages</description>
32 <action command="delete" search="walk.all" path="~/Library/Containers/com.apple.Safari/Data/Library/Caches/com.apple.Safari/"/>
33 <action command="delete" search="walk.all" path="~/Library/Caches/com.apple.Safari/"/>
34 <action command="delete" search="walk.all" path="~/Library/Safari/Metadata Cache/"/>
35 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/HTTPStorages/com.apple.Safari/httpstorages.sqlite"/>
36 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/HTTPStorages/com.apple.Safari/httpstorages.sqlite-wal"/>
37 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/HTTPStorages/com.apple.Safari/httpstorages.sqlite-shm"/>
38 </option>
39 <option id="history">
40 <label>History</label>
41 <description>Delete the history of visited sites</description>
42 <action command="delete" search="file" path="~/Library/Safari/History.db"/>
43 <action command="delete" search="file" path="~/Library/Safari/History.db-wal"/>
44 <action command="delete" search="file" path="~/Library/Safari/History.db-shm"/>
45 <action command="delete" search="file" path="~/Library/Safari/History.db-lock"/>
46 <action command="delete" search="file" path="~/Library/Safari/RecentlyClosedTabs.plist"/>
47 <action command="delete" search="file" path="~/Library/Safari/TopSites.plist"/>
48 <action command="delete" search="file" path="~/Library/Safari/Downloads.plist"/>
49 </option>
50 <option id="session">
51 <label>Session</label>
52 <description>Previously open tabs and windows</description>
53 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/SafariTabs.db"/>
54 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/SafariTabs.db-wal"/>
55 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/SafariTabs.db-shm"/>
56 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/CloudTabs.db"/>
57 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/CloudTabs.db-wal"/>
58 <action command="delete" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/CloudTabs.db-shm"/>
59 <action command="delete" search="walk.all" path="~/Library/Containers/com.apple.Safari/Data/Library/Saved Application State/"/>
60 </option>
61 <option id="crash_reports">
62 <label>Crash reports</label>
63 <description>Delete the files</description>
64 <action command="delete" search="glob" path="~/Library/Logs/DiagnosticReports/Safari-*.ips"/>
65 <action command="delete" search="glob" path="~/Library/Logs/DiagnosticReports/Safari_*.crash"/>
66 </option>
67 <option id="form_history">
68 <label>Form history</label>
69 <description>A history of forms entered in websites</description>
70 <action command="delete" search="file" path="~/Library/Safari/Form Values"/>
71 </option>
72 <option id="site_preferences">
73 <label>Site preferences</label>
74 <description>Settings for individual sites</description>
75 <action command="delete" search="file" path="~/Library/Safari/PerSitePreferences.db"/>
76 </option>
77 <option id="site_data">
78 <label>Site data</label>
79 <description>Delete LocalStorage, IndexedDB, and other data stored by websites</description>
80 <action command="delete" search="walk.all" path="~/Library/Containers/com.apple.Safari/Data/Library/WebKit/WebsiteData/Default/"/>
81 <action command="delete" search="walk.all" path="~/Library/Containers/com.apple.Safari/Data/Library/WebKit/WebsiteData/LocalStorage/"/>
82 <action command="delete" search="walk.all" path="~/Library/Containers/com.apple.Safari/Data/Library/WebKit/WebsiteData/IndexedDB/"/>
83 <action command="delete" search="walk.all" path="~/Library/Safari/LocalStorage/"/>
84 <action command="delete" search="walk.all" path="~/Library/Safari/Databases/___IndexedDB/"/>
85 </option>
86 <option id="vacuum">
87 <label>Vacuum</label>
88 <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
89 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/History.db"/>
90 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/PerSitePreferences.db"/>
91 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/BlockedBannerHighlights.db"/>
92 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/CloudAutoFillCorrections.db"/>
93 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/ContentBlockerStatistics.db"/>
94 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/IgnoredSiriSuggestedSites.db"/>
95 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/UserDefinedContentBlockers.db"/>
96 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/Favicon Cache/favicons.db"/>
97 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/Touch Icons Cache/TouchIconCacheSettings.db"/>
98 <action command="sqlite.vacuum" search="file" path="~/Library/Safari/Metadata Cache/LPLinkMetadata.db"/>
99 <action command="sqlite.vacuum" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/SafariTabs.db"/>
100 <action command="sqlite.vacuum" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/CloudTabs.db"/>
101 <action command="sqlite.vacuum" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/Safari/CloudExtensions.db"/>
102 <action command="sqlite.vacuum" search="file" path="~/Library/Containers/com.apple.Safari/Data/Library/HTTPStorages/com.apple.Safari/httpstorages.sqlite"/>
103 </option>
104 </cleaner>