Updated 1.6 Bulk Pref Resetting [Scratchpad] (markdown)

Thorin-Oakenpants 2017-09-24 07:09:43 +13:00
parent 8ad5f0a8c4
commit 47f58945ef

@ -1,3 +1,5 @@
### :exclamation: this is a draft
### :small_orange_diamond: The Overview ### :small_orange_diamond: The Overview
In our [changelog](https://github.com/ghacksuserjs/ghacks-user.js/search?q=label%3Achangelog&type=Issues&utf8=✓) for each release of the ghacks `user.js`, we list preferences that have been: In our [changelog](https://github.com/ghacksuserjs/ghacks-user.js/search?q=label%3Achangelog&type=Issues&utf8=✓) for each release of the ghacks `user.js`, we list preferences that have been:
@ -23,11 +25,8 @@ All of the above can be reset manually. Not so bad if you do it on each release
- You can run a script in Scratchpad and do it all in one hit - You can run a script in Scratchpad and do it all in one hit
- You still need to compile a list of your - You still need to compile a list of your
* INACTIVE prefs, all DEPRECATED (9999) prefs, all RFP ALT (4600) prefs * INACTIVE prefs, all DEPRECATED (9999) prefs, all RFP ALT (4600) prefs
* ^^ i.e some SECTIONS are commented out, thus the prefs are "effectively" commented out, but the pref line itself isn't. So you can't just search for `// user_pref` * i.e some SECTIONS are commented out, thus the prefs are "effectively" commented out, but the pref line itself isn't. So you can't just search for `// user_pref`
* If you know what you're doing, it's fairly trivial... otherwise... * If you know what you're doing, it's fairly trivial
- Good news, everyone!
* Finish this bit, link to atomGit?
* Suggest 4 lists as per bullet list at top of page
NOTE: You could actually reset **every** **pref** in the user.js, and your ACTIVE prefs will simply be reapplied on the next Firefox start NOTE: You could actually reset **every** **pref** in the user.js, and your ACTIVE prefs will simply be reapplied on the next Firefox start
@ -35,16 +34,21 @@ NOTE: You could actually reset **every** **pref** in the user.js, and your ACTIV
The **sample** script below contains the prefs we have REMOVED up to Release 55-alpha The **sample** script below contains the prefs we have REMOVED up to Release 55-alpha
* It is highly recommended to backup your Firefox profile or, at a minimum, at least your `prefs.js` file * Close Firefox and [backup](https://github.com/ghacksuserjs/ghacks-user.js/wiki/1.2-Backing-Up) your profile
* :exclamation: **open about:config (so that Services is available for scratchpad)** * Disable the network connection
* ^^ Read that again - **the `about:config` tab must have focus in order to run the script** * Optional: recommended for large lists
* Start Firefox and open `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 * Press Shift+F4 to open the Scratchpad and clear the contents
* Paste **your** script * Paste **your** script
* If pasting is not allowed, in about:config change the value of `devtools.selfxss.count` to 7 high number, such as `100` and then paste the script
* Make sure the final pref does not have a trailing comma * Make sure the final pref does not have a trailing comma
* If pasting is not allowed, change `devtools.selfxss.count` to a high number e.g. `100`
* Run it * Run it
* Watch the console for output * Watch the console for output
* **IMPORTANT:** Restart Firefox, as some prefs require a restart, and so your `user.js` (and override.js, etc., if applicable) is reapplied * Restart Firefox
* Some prefs require a restart
* A restart will reapply your user.js (and override.js if [applicable](https://github.com/ghacksuserjs/ghacks-user.js/wiki/1.5-Keeping-Up-To-Date))
* Re-enable the network connection
### :small_orange_diamond: The Script ### :small_orange_diamond: The Script