<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2013-2014 Andrew Ziem
    http://bleachbit.sourceforge.net

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->
<cleaner id="icecat_xml">
  <label>Icecat (XML)</label>
  <description>Web browser</description>
  <running type="exe">icecat.exe</running>
  <running type="exe">icecat-bin</running>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <action command="delete" search="walk.files" path="~/.mozilla/icecat*/*/Cache/"/>
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\Cache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\OfflineCache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\mozilla-media-cache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\startupCache\"/>
    
    <!-- Windows 8 -->
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\jumpListCache\"/> 
    
    <!-- Also matches thumbnails-old -->
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\thumbnails*\"/>
    
    <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=239254 -->
    <action command="delete" search="walk.files" path="~/.cache/mozilla/icecat*/*/"/>
    
    <!-- Favicon cache (stored when you drag & drop a page into a folder. Windows-only(?).) -->
    <action command="delete" search="walk.files" path="$localappdata\Mozilla\Icecat\Profiles\*\shortcutCache\"/>
  </option>
  <option id="cookies">
    <label>Cookies</label>
    <description>Delete cookies, which contain information such as web site preferences, authentication, and tracking identification</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/cookies.sqlite"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/cookies.txt"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\cookies.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\cookies.txt"/>
  </option>
  <option id="crash_reports">
    <label>Crash reports</label>
    <description>Delete the files</description>
    <action command="delete" search="walk.files" path="~/.mozilla/icecat*/Crash Reports/"/>
    <action command="delete" search="walk.files" path="$APPDATA\Mozilla\Icecat\Crash Reports\"/>
  </option>
  <option id="dom">
    <label>DOM Storage</label>
    <description>Delete HTML5 cookies</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/webappsstore.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\webappsstore.sqlite"/>
  </option>
  <option id="download_history">
    <label>Download history</label>
    <description>List of files downloaded</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/downloads.sqlite"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/downloads.rdf"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\downloads.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\downloads.rdf"/>
  </option>
  <option id="forms">
    <label>Form history</label>
    <description>A history of forms entered in web sites and in the Search bar</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/formhistory.sqlite"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/formhistory.dat"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\formhistory.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\formhistory.dat"/>
  </option>
  <option id="passwords">
    <label>Passwords</label>
    <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/signons.sqlite"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/signons.txt"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/signons[2-3].txt"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\signons.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\signons.txt"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\signons[2-3].txt"/>
  </option>
  <option id="session_restore">
    <label>Session restore</label>
    <description>Loads the initial session after the browser closes or crashes</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/sessionstore.js"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/sessionstore.bak"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\sessionstore.js"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\sessionstore.bak"/>
  </option>
  <option id="site_preferences">
    <label>Site preferences</label>
    <description>Settings for individual sites</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/content-prefs.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\content-prefs.sqlite"/>
  </option>
  <option id="url_history">
    <label>URL history</label>
    <description>List of visited web pages</description>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/places.sqlite"/>
    <action command="delete" search="glob" path="~/.mozilla/icecat*/*/history.dat"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\places.sqlite"/>
    <action command="delete" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\history.dat"/>
  </option>
  <option id="vacuum">
    <label>Vacuum</label>
    <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
    <action command="sqlite.vacuum" search="glob" path="~/.mozilla/icecat*/*/*.sqlite"/>
    <action command="sqlite.vacuum" search="glob" path="$APPDATA\Mozilla\Icecat\Profiles\*\*.sqlite"/>
    <action command="sqlite.vacuum" search="glob" path="$localappdata\Mozilla\Icecat\Profiles\*\*.sqlite"/>
  </option>
</cleaner>
