To see how this script works, see here.

Step 1

Paste in the contents of your prefs.js file.

Remember to remove the "# Mozilla User Preferences" at the start.