Skip to content

Instantly share code, notes, and snippets.

@BrunoReX
Last active December 15, 2015 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BrunoReX/5286414 to your computer and use it in GitHub Desktop.
Save BrunoReX/5286414 to your computer and use it in GitHub Desktop.
Firefox cleaner for BleachBit (CleanerML version)
<?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="firefox_xml">
<label>Firefox (XML)</label>
<description>Web browser</description>
<running type="exe">firefox.exe</running>
<running type="exe">firefox-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/firefox*/*/Cache/"/>
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\Profiles\*\Cache\"/>
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\Profiles\*\OfflineCache\"/>
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\Profiles\*\mozilla-media-cache\"/>
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\Profiles\*\startupCache\"/>
<!-- Windows 8 -->
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\Profiles\*\jumpListCache\"/>
<!-- Also matches thumbnails-old -->
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\Profiles\*\thumbnails*\"/>
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=239254 -->
<action command="delete" search="walk.files" path="~/.cache/mozilla/firefox*/*/"/>
<!-- Favicon cache (stored when you drag & drop a page into a folder. Windows-only(?).) -->
<action command="delete" search="walk.files" path="$localappdata\Mozilla\Firefox\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/firefox*/*/cookies.sqlite"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/cookies.txt"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\cookies.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/Crash Reports/"/>
<action command="delete" search="walk.files" path="$APPDATA\Mozilla\Firefox\Crash Reports\"/>
</option>
<option id="dom">
<label>DOM Storage</label>
<description>Delete HTML5 cookies</description>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/webappsstore.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/*/downloads.sqlite"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/downloads.rdf"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\downloads.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/*/formhistory.sqlite"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/formhistory.dat"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\formhistory.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/*/signons.sqlite"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/signons.txt"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/signons[2-3].txt"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\signons.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\signons.txt"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/*/sessionstore.js"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/sessionstore.bak"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\sessionstore.js"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/*/content-prefs.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\content-prefs.sqlite"/>
</option>
<option id="url_history">
<label>URL history</label>
<description>List of visited web pages</description>
<action command="mozilla_url_history" search="glob" path="~/.mozilla/firefox*/*/places.sqlite"/>
<action command="delete" search="glob" path="~/.mozilla/firefox*/*/history.dat"/>
<action command="mozilla_url_history" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\places.sqlite"/>
<action command="delete" search="glob" path="$APPDATA\Mozilla\Firefox\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/firefox*/*/*.sqlite"/>
<action command="sqlite.vacuum" search="glob" path="$APPDATA\Mozilla\Firefox\Profiles\*\*.sqlite"/>
<action command="sqlite.vacuum" search="glob" path="$localappdata\Mozilla\Firefox\Profiles\*\*.sqlite"/>
</option>
</cleaner>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment