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

    BleachBit
    Copyright (C) 2008-2018 Andrew Ziem
    https://www.bleachbit.org

    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="opera">
  <label>Opera</label>
  <description>Web browser</description>
  <running type="exe">opera</running>
  <running type="exe">opera.exe</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="$localappdata\Opera\Opera*\cache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Opera\Opera*\opcache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Opera\Opera*\thumbnails\"/>
    <action command="delete" search="walk.files" path="$localappdata\Opera\Opera*\profile\cache4\"/>
    <action command="delete" search="walk.files" path="$localappdata\Opera\Opera*\profile\opcache\"/>
    <action command="delete" search="walk.files" path="~/.opera/cache/"/>
    <action command="delete" search="walk.files" path="~/.opera/cache4/"/>
    <action command="delete" search="walk.files" path="~/.opera/opcache/"/>
    <action command="delete" search="walk.files" path="~/.opera/thumbnails/"/>
  </option>
  <option id="cookies">
    <label>Cookies</label>
    <description>Delete cookies, which contain information such as web site preferences, authentication, and tracking identification</description>
    <!-- example: C:\Documents and Settings\user\Application Data\Opera\Opera\cookies.txt -->
    <!-- example: C:\Documents and Settings\user\Application Data\Opera\Opera 11.00 beta\cookies.txt -->
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\cookies4.dat"/>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\profile\cookies4.dat"/>
    <action command="delete" search="file" path="~/.opera/cookies4.dat"/>
  </option>
  <option id="current_session">
    <label>Current session</label>
    <description>Delete the current session</description>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\sessions\autosave.win"/>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\sessions\autosave.win.bak"/>
    <action command="delete" search="file" path="~/.opera/sessions/autosave.win"/>
    <action command="delete" search="file" path="~/.opera/sessions/autosave.win.bak"/>
  </option>
  <option id="dom">
    <label>DOM Storage</label>
    <description>Delete HTML5 cookies</description>
    <action command="delete" search="walk.all" path="$appdata\Opera\Opera*\pstorage\"/>
    <action command="delete" search="walk.all" path="~/.opera/pstorage/"/>
  </option>
  <option id="download_history">
    <label>Download history</label>
    <description>List of files downloaded</description>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\download.dat"/>
    <action command="delete" search="file" path="$appdata\Opera\Opera\profile\download.dat"/>
    <action command="delete" search="file" path="~/.opera/download.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>
    <warning>This option will delete your saved passwords.</warning>
    <action command="delete" search="file" path="~/.opera/wand.dat"/>
    <action command="delete" search="file" path="$appdata\Opera Software\Opera Stable\Login Data"/>
    <action command="delete" search="file" path="$appdata\Opera Software\Opera Stable\Login Data-journal"/>
  </option>
  <option id="search_history">
    <label>Search history</label>
    <description>Delete the search history</description>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\search_field_history.dat"/>
    <action command="delete" search="glob" path="~/.opera/search_field_history.dat"/>
  </option>
  <option id="url_history">
    <label>URL history</label>
    <description>List of visited web pages</description>
    <!-- global.dat is in Opera 9, global_history.dat is in Opera 10 -->
    <action command="delete" search="file" path="$appdata\Opera\Opera\profile\global.dat"/>
    <action command="delete" search="file" path="$appdata\Opera\Opera\profile\typed_history.xml"/>
    <action command="delete" search="file" path="$appdata\Opera\Opera\profile\vlink4.dat"/>
    <action command="delete" search="file" path="$localappdata\Opera\Opera\profile\vps\????\md.dat"/>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\global_history.dat"/>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\typed_history.xml"/>
    <action command="delete" search="glob" path="$appdata\Opera\Opera*\vlink4.dat"/>
    <action command="delete" search="glob" path="$localappdata\Opera\Opera*\icons\*.gif"/>
    <action command="delete" search="glob" path="$localappdata\Opera\Opera*\icons\*.ico"/>
    <action command="delete" search="glob" path="$localappdata\Opera\Opera*\icons\*.idx"/>
    <action command="delete" search="glob" path="$localappdata\Opera\Opera*\vps\????\md.dat"/>
    <action command="delete" search="file" path="~/.opera/global.dat"/>
    <action command="delete" search="file" path="~/.opera/global_history.dat"/>
    <action command="delete" search="file" path="~/.opera/typed_history.xml"/>
    <action command="delete" search="file" path="~/.opera/vlink4.dat"/>
    <action command="delete" search="glob" path="~/.opera/icons/*.gif"/>
    <action command="delete" search="glob" path="~/.opera/icons/*.ico"/>
    <action command="delete" search="glob" path="~/.opera/icons/*.idx"/>
    <action command="delete" search="glob" path="~/.opera/vps/????/md.dat"/>
  </option>
</cleaner>
