userstyles.org - Fixing a corrupted database in Firefox

Stylish stores your styles in a database file on your computer to work. If it can't open this database file, it can't work. It'll complain about this every time you start Firefox.

The instructions below should get you going again. If you have problems, you can ask on the forum.

Deleting the Stylish database

Deleting the database should fix the issue, but you'll lose any styles you've installed. If you want to keep your styles, see the next section.

To delete your database:

  1. Start Firefox.
  2. In Firefox, type about:support in the address bar and press Enter.
  3. Click the button marked "Open Containing Folder". This should open a file browsing window.
  4. Close all Firefox windows.
  5. In the file browsing window, find "stylish.sqlite" and delete it.

When you start Firefox, Stylish will create a new, empty database file and will be functional once again.

Fixing the Stylish database

This option is a little more complicated, but you'll be able to keep your installed styles.

  1. Install SQLite Database Browser.
  2. Start Firefox.
  3. In Firefox, type about:support in the address bar and press Enter.
  4. Click the button marked "Open Containing Folder". This should open a file browsing window.
  5. Close all Firefox windows.
  6. In the file browsing window, find "stylish.sqlite" and open it with SQLite Database Browser.
  7. In SQLite Database Browser, choose File, Compact Database.
  8. Close SQLite Database Browser.

When you start Firefox, things may be fixed. If not, you'll have to do something else.

Uninstalling Stylish

If you don't care to have Stylish any more, you can uninstall it.

  1. Start Firefox.
  2. Go to Tools, Add-ons.
  3. Click on the Extensions panel.
  4. Click on the entry for Stylish.
  5. Click Uninstall.
Advertisement