- -* Close Firefox and [backup](https://github.com/arkenfox/user.js/wiki/1.2-Backing-Up) your profile -* (Optional) Disable the network connection 1 -* Start Firefox -* Open the Developer>Browser Console>Logging for any output - * the script will list every pref it resets in the console - * it only resets prefs if they are `user set`/ `modified` -* Load `about:config` (so that Services is available for scratchpad) - * Read that again :exclamation: the `about:config` tab must have focus in order to run the script -* Press Shift+F4 to open the Scratchpad and clear the contents -* Open **your** script (`.js` file) or paste it - * If pasting is not allowed, change `devtools.selfxss.count` to a high number e.g. `100` - * If you edited the list of prefs in the script, make sure the last pref does **not** have a trailing comma -* Run it -* Check the console to see which prefs were reset - * if you see something you want to keep, add it to your user.js (or your overrides) -* Restart Firefox - * Some prefs require a restart - * A restart will reapply your `user.js` -* Re-enable the network connection - -1 Blocking Firefox from the internet ensures it cannot act on your reset preferences in the period before you restart it, such as app and extension auto-updating, or downloading unwanted components (system addons, GMP etc). It depends on what you're resetting and how long before you restart. - -
+
* Close Firefox and [backup](https://github.com/arkenfox/user.js/wiki/1.2-Backing-Up) your profile
* (Optional) Disable the network connection 1
How To Run Our Scratchpad Cleanup Scripts