Updated 1.6 Bulk Pref Resetting [Scratchpad] (markdown)

Thorin-Oakenpants 2017-09-24 06:34:37 +13:00
parent 82bf03b163
commit d37ecd7502

@ -1,5 +1,3 @@
## NOTE THAT THIS IS A WORK IN PROGRESS AND IS LARGELY UNTESTED AT THIS POINT - please stay tuned for further updates as the contents of this article are hashed out
### :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:
@ -8,17 +6,13 @@ In our [changelog](https://github.com/ghacksuserjs/ghacks-user.js/search?q=label
- DEPRECATED (Section 9999) - DEPRECATED (Section 9999)
- become REDUNDANT or CONFLICT with, `privacy.resistFingerprinting` (RFP) (Section 4600) - become REDUNDANT or CONFLICT with, `privacy.resistFingerprinting` (RFP) (Section 4600)
Below is a Firefox Scratchpad cleanup script based on the ghacks `user.js` which is intended to reset all Depreciated, Inactive, Redundant and [some] of the Removed preferences from your ghacks `user.js` file. Upon running this script the values of the preferences in the script will be reset to empty values. Removed prefs are nowhere to be found, and we have no easy answer except to pay attention to the changelogs. As for the rest: sections 4600 and 9999 list items by Firefox version, and prefs we've made inactive are still there, just harder to spot. Note: That even if you are on ESR, sooner or later, the deprecated prefs will still apply
The purpose of this script is to cleanup your `prefs.js` and ghacks `user.js` files after you update your ghacks `user.js` file with a newer version in order to remove bloat and reduce the chance of conflicts and thus potentially help you when troubleshooting a problem. Running this script each time you update your `user.js` avoids having to sift through the changelogs and manually reset preference values, thus making updating your `user.js` a bit less painful.
Not all Removed prefs are contained in the script and we have no easy answer except to pay attention to the changelogs. As for the rest: sections 4600 and 9999 list items by Firefox version, and prefs we've made inactive are still there, just harder to spot. Note: That even if you are on ESR, sooner or later, the deprecated prefs will still apply.
### :small_orange_diamond: The Issue ### :small_orange_diamond: The Issue
So all these REMOVED, INACTIVE, DEPRECATED, and REDUNDANT prefs should be reset in `about:config`. And over time, the list builds up. Some are harmless (deprecated items will have no effect), but others are vital (e.g. `dom.indexedDB.enabled` is now used by some Extensions <sup>1</sup> (e.g uBlock Origin, uMatrix, Stylus). And some items in 4600 actually interfere with `privacy.resistFingerprinting`. Add to this any prefs you may have made inactive yourself. So all these REMOVED, INACTIVE, DEPRECATED, and REDUNDANT prefs should be reset in `about:config`. And over time, the list builds up. Some are harmless (deprecated items will have no effect), but others are vital (e.g. `dom.indexedDB.enabled` is now used by some Extensions <sup>1</sup> (e.g uBlock Origin, uMatrix, Stylus). And some items in 4600 actually interfere with `privacy.resistFingerprinting`. Add to this any prefs you may have made inactive yourself.
So the question is, how do you make sure all these prefs in your `user.js` have been reset in about:config? Over time you **will** miss something. So the issue is :question: How do you make sure all these prefs in your user.js have been reset in about:config? Over time you **will** miss something.
<sup>1</sup> `Extensions` = Web Extensions API, `Legacy Extensions` = legacy APIs or the Add-on SDK. <sup>1</sup> `Extensions` = Web Extensions API, `Legacy Extensions` = legacy APIs or the Add-on SDK.
@ -26,664 +20,37 @@ So the question is, how do you make sure all these prefs in your `user.js` have
All of the above can be reset manually. Not so bad if you do it on each release and watch the changelogs etc. But this is time consuming, prone to human error, and not automated in any way. We also make prefs and sections INACTIVE for a reason, so it pays to be in "sync". This can also be used when applying a `user.js` to an existing profile for the first time. All of the above can be reset manually. Not so bad if you do it on each release and watch the changelogs etc. But this is time consuming, prone to human error, and not automated in any way. We also make prefs and sections INACTIVE for a reason, so it pays to be in "sync". This can also be used when applying a `user.js` to an existing profile for the first time.
You could create and run your own Scratchpad script and do it all in one shot, but you would still need to compile a list of your inactive, depreciated and redundant prefs. Making this task more difficult is the fact that some sections of the ghacks `user.js` 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`. You could actually reset **every** pref in the your `user.js` and your active prefs will simply be reapplied on the next Firefox start. If you know what you're doing, it would be fairly trivial to create such a script, however we have already done the work for you! - You can run a script in Scratchpad and do it all in one hit
- You still need to compile a list of your
* 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`
* If you know what you're doing, it's fairly trivial... otherwise...
- 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
### :small_orange_diamond: How To Run The Script ### :small_orange_diamond: How To Run The Script
**IF YOU HAVE EDITED THE GHACKS `user.js` INSTEAD OF CREATING AN `override.js` AS SUGGESTED, THEN YOU WILL LOSE ALL OF YOUR CUSTOM SETTINGS UPON RUNNING THIS SCRIPT!** See [_1.5 Keeping Up To Date_](https://github.com/ghacksuserjs/ghacks-user.js/wiki/1.5-Keeping-Up-To-Date) for details on how to save your custom settings. The **sample** script below contains the prefs we have REMOVED up to Release 55-alpha
1. It is highly recommended to backup your Firefox profile or, at a minimum, at least your `prefs.js` file - you have been warned! * It is highly recommended to backup your Firefox profile or, at a minimum, at least your `prefs.js` file
2. Copy the Scratchpad script below * :exclamation: **open about:config (so that Services is available for scratchpad)**
3. Open `about:config` in Firefox - **the `about:config` tab must have focus in order to run the script** * ^^ Read that again - **the `about:config` tab must have focus in order to run the script**
4. Press Shift+F4 to open the Scratchpad UI * Press Shift+F4 to open the Scratchpad and clear the contents
5. Select all the content, if any, in Scratchpad and delete it * Paste **your** script
6. Paste the 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) * 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
8. Run it * Make sure the final pref does not have a trailing comma
9. Watch the console for output * Run it
10. **IMPORTANT:** Restart Firefox so your `user.js` (and override.js, etc., if applicable) is reapplied * 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
### :small_orange_diamond: The Script ### :small_orange_diamond: The Script
Authors: [earthlng](https://github.com/earthlng), [atomGit](https://github.com/atomGit) Authors: [earthlng](https://github.com/earthlng)
```js ```js
(function() { placeholder
let ops = [
/* SECTION 100: removed in ghacks user.js */
/* https://github.com/ghacksuserjs/ghacks-user.js/search?q=label%3Achangelog&type=Issues&utf8=✓ */
/* 52-alpha */
'browser.search.reset.enabled',
'browser.search.reset.whitelist',
/* 54-alpha */
'browser.migrate.automigrate.enabled',
'services.sync.enabled',
'webextensions.storage.sync.enabled',
'webextensions.storage.sync.serverURL',
/* 55-alpha */
'dom.keyboardevent.dispatch_during_composition',
'dom.vr.oculus.enabled',
'dom.vr.openvr.enabled',
'dom.vr.osvr.enabled',
'extensions.pocket.api',
'extensions.pocket.oAuthConsumerKey',
'extensions.pocket.site',
/* SECTION 110: reset ALL prefs in ghacks user.js */
'_user.js.parrot',
'accessibility.typeaheadfind',
'alerts.showFavicons',
'app.update.auto',
'app.update.enabled',
'app.update.service.enabled',
'app.update.silent',
'app.update.staging.enabled',
'beacon.enabled',
'breakpad.reportURL',
'browser.aboutHomeSnippets.updateUrl',
'browser.backspace_action',
'browser.bookmarks.max_backups',
'browser.bookmarks.showRecentlyBookmarked',
'browser.cache.disk.capacity',
'browser.cache.disk.enable',
'browser.cache.disk.smart_size.enabled',
'browser.cache.disk.smart_size.first_run',
'browser.cache.disk_cache_ssl',
'browser.cache.frecency_experiment',
'browser.cache.memory.capacity',
'browser.cache.memory.enable',
'browser.cache.offline.enable',
'browser.casting.enabled',
'browser.chrome.favicons',
'browser.chrome.site_icons',
'browser.crashReports.unsubmittedCheck.autoSubmit',
'browser.crashReports.unsubmittedCheck.enabled',
'browser.ctrlTab.previews',
'browser.display.use_document_fonts',
'browser.download.folderList',
'browser.download.forbid_open_with',
'browser.download.hide_plugins_without_extensions',
'browser.download.manager.addToRecentDocs',
'browser.download.useDownloadDir',
'browser.eme.ui.enabled',
'browser.fixup.alternate.enabled',
'browser.fixup.hide_user_pass',
'browser.formautofill.enabled',
'browser.formfill.enable',
'browser.formfill.saveHttpsForms',
'browser.fullscreen.animate',
'browser.helperApps.deleteTempFileOnExit',
'browser.history.allowPopState',
'browser.history.allowPushState',
'browser.history.allowReplaceState',
'browser.laterrun.enabled',
'browser.link.open_newwindow',
'browser.link.open_newwindow.restriction',
'browser.newtab.preload',
'browser.newtabpage.activity-stream.enabled',
'browser.newtabpage.directory.ping',
'browser.newtabpage.directory.source',
'browser.newtabpage.enabled',
'browser.newtabpage.enhanced',
'browser.newtabpage.introShown',
'browser.offline-apps.notify',
'browser.onboarding.enabled',
'browser.pagethumbnails.capturing_disabled',
'browser.pocket.api',
'browser.pocket.enabled',
'browser.pocket.oAuthConsumerKey',
'browser.pocket.site',
'browser.polaris.enabled',
'browser.privatebrowsing.autostart',
'browser.rights.3.shown',
'browser.safebrowsing.allowOverride',
'browser.safebrowsing.appRepURL',
'browser.safebrowsing.blockedURIs.enabled',
'browser.safebrowsing.downloads.enabled',
'browser.safebrowsing.downloads.remote.block_dangerous',
'browser.safebrowsing.downloads.remote.block_dangerous_host',
'browser.safebrowsing.downloads.remote.block_potentially_unwanted',
'browser.safebrowsing.downloads.remote.block_uncommon',
'browser.safebrowsing.downloads.remote.enabled',
'browser.safebrowsing.downloads.remote.url',
'browser.safebrowsing.enabled',
'browser.safebrowsing.gethashURL',
'browser.safebrowsing.malware.enabled',
'browser.safebrowsing.malware.reportURL',
'browser.safebrowsing.phishing.enabled',
'browser.safebrowsing.provider.google.appRepURL',
'browser.safebrowsing.provider.google.gethashURL',
'browser.safebrowsing.provider.google.reportMalwareMistakeURL',
'browser.safebrowsing.provider.google.reportPhishMistakeURL',
'browser.safebrowsing.provider.google.reportURL',
'browser.safebrowsing.provider.google.updateURL',
'browser.safebrowsing.provider.google4.gethashURL',
'browser.safebrowsing.provider.google4.reportMalwareMistakeURL',
'browser.safebrowsing.provider.google4.reportPhishMistakeURL',
'browser.safebrowsing.provider.google4.reportURL',
'browser.safebrowsing.provider.google4.updateURL',
'browser.safebrowsing.provider.mozilla.gethashURL',
'browser.safebrowsing.provider.mozilla.updateURL',
'browser.safebrowsing.reportErrorURL',
'browser.safebrowsing.reportGenericURL',
'browser.safebrowsing.reportMalwareErrorURL',
'browser.safebrowsing.reportMalwareMistakeURL',
'browser.safebrowsing.reportMalwareURL',
'browser.safebrowsing.reportPhishMistakeURL',
'browser.safebrowsing.reportPhishURL',
'browser.safebrowsing.reportURL',
'browser.safebrowsing.updateURL',
'browser.search.countryCode',
'browser.search.geoSpecificDefaults',
'browser.search.geoSpecificDefaults.url',
'browser.search.geoip.timeout',
'browser.search.geoip.url',
'browser.search.region',
'browser.search.showOneOffButtons',
'browser.search.suggest.enabled',
'browser.search.update',
'browser.selfsupport.enabled',
'browser.selfsupport.url',
'browser.send_pings',
'browser.send_pings.require_same_host',
'browser.sessionhistory.max_entries',
'browser.sessionhistory.max_total_viewers',
'browser.sessionstore.interval',
'browser.sessionstore.max_tabs_undo',
'browser.sessionstore.max_windows_undo',
'browser.sessionstore.privacy_level',
'browser.sessionstore.privacy_level_deferred',
'browser.sessionstore.resume_from_crash',
'browser.shell.checkDefaultBrowser',
'browser.shell.shortcutFavicons',
'browser.slowStartup.maxSamples',
'browser.slowStartup.notificationDisabled',
'browser.slowStartup.samples',
'browser.ssl_override_behavior',
'browser.startup.homepage_override.mstone',
'browser.startup.page',
'browser.storageManager.enabled',
'browser.tabs.animate',
'browser.tabs.closeWindowWithLastTab',
'browser.tabs.crashReporting.sendReport',
'browser.tabs.insertRelatedAfterCurrent',
'browser.tabs.loadDivertedInBackground',
'browser.tabs.loadInBackground',
'browser.tabs.remote.allowLinkedWebInFileUriProcess',
'browser.tabs.remote.autostart',
'browser.tabs.remote.autostart.2',
'browser.tabs.remote.force-enable',
'browser.tabs.remote.separateFileUriProcess',
'browser.tabs.selectOwnerOnClose',
'browser.tabs.warnOnClose',
'browser.tabs.warnOnCloseOtherTabs',
'browser.tabs.warnOnOpen',
'browser.taskbar.lists.enabled',
'browser.taskbar.lists.frequent.enabled',
'browser.taskbar.lists.recent.enabled',
'browser.taskbar.lists.tasks.enabled',
'browser.taskbar.previews.enable',
'browser.trackingprotection.gethashURL',
'browser.trackingprotection.updateURL',
'browser.uitour.enabled',
'browser.uitour.url',
'browser.urlbar.autoFill',
'browser.urlbar.autoFill.typed',
'browser.urlbar.autocomplete.enabled',
'browser.urlbar.clickSelectsAll',
'browser.urlbar.decodeURLsOnCopy',
'browser.urlbar.doubleClickSelectsAll',
'browser.urlbar.filter.javascript',
'browser.urlbar.maxRichResults',
'browser.urlbar.oneOffSearches',
'browser.urlbar.speculativeConnect.enabled',
'browser.urlbar.suggest.bookmark',
'browser.urlbar.suggest.history',
'browser.urlbar.suggest.openpage',
'browser.urlbar.suggest.searches',
'browser.urlbar.trimURLs',
'browser.urlbar.unifiedcomplete',
'browser.urlbar.usepreloadedtopurls.enabled',
'browser.urlbar.userMadeSearchSuggestionsChoice',
'browser.usedOnWindows10.introURL',
'browser.xul.error_pages.expert_bad_cert',
'browser.zoom.siteSpecific',
'camera.control.autofocus_moving_callback.enabled',
'camera.control.face_detection.enabled',
'canvas.capturestream.enabled',
'captivedetect.canonicalURL',
'clipboard.autocopy',
'datareporting.healthreport.about.reportUrl',
'datareporting.healthreport.about.reportUrlUnified',
'datareporting.healthreport.documentServerURI',
'datareporting.healthreport.service.enabled',
'datareporting.healthreport.uploadEnabled',
'datareporting.policy.dataSubmissionEnabled',
'datareporting.policy.dataSubmissionEnabled.v2',
'device.sensors.enabled',
'device.storage.enabled',
'devtools.chrome.enabled',
'devtools.debugger.remote-enabled',
'devtools.webide.autoinstallADBHelper',
'devtools.webide.autoinstallFxdtAdapters',
'devtools.webide.enabled',
'dom.IntersectionObserver.enabled',
'dom.allow_cut_copy',
'dom.allow_scripts_to_close_windows',
'dom.archivereader.enabled',
'dom.battery.enabled',
'dom.beforeAfterKeyboardEvent.enabled',
'dom.caches.enabled',
'dom.disable_beforeunload',
'dom.disable_image_src_set',
'dom.disable_window_flip',
'dom.disable_window_move_resize',
'dom.disable_window_open_feature.close',
'dom.disable_window_open_feature.location',
'dom.disable_window_open_feature.menubar',
'dom.disable_window_open_feature.minimizable',
'dom.disable_window_open_feature.personalbar',
'dom.disable_window_open_feature.resizable',
'dom.disable_window_open_feature.scrollbars',
'dom.disable_window_open_feature.status',
'dom.disable_window_open_feature.titlebar',
'dom.disable_window_open_feature.toolbar',
'dom.disable_window_status_change',
'dom.enable_performance',
'dom.enable_resource_timing',
'dom.enable_user_timing',
'dom.event.clipboardevents.enabled',
'dom.event.contextmenu.enabled',
'dom.flyweb.enabled',
'dom.gamepad.enabled',
'dom.idle-observers-api.enabled',
'dom.imagecapture.enabled',
'dom.indexedDB.enabled',
'dom.ipc.plugins.flash.subprocess.crashreporter.enabled',
'dom.ipc.plugins.reportCrashURL',
'dom.ipc.plugins.sandbox-level.default',
'dom.ipc.plugins.sandbox-level.flash',
'dom.ipc.processCount',
'dom.ipc.processCount.extension',
'dom.ipc.processCount.file',
'dom.ipc.shims.enabledWarnings',
'dom.keyboardevent.code.enabled',
'dom.maxHardwareConcurrency',
'dom.netinfo.enabled',
'dom.network.enabled',
'dom.popup_allowed_events',
'dom.popup_maximum',
'dom.presentation.controller.enabled',
'dom.presentation.discoverable',
'dom.presentation.discovery.enabled',
'dom.presentation.enabled',
'dom.presentation.receiver.enabled',
'dom.presentation.session_transport.data_channel.enable',
'dom.push.connection.enabled',
'dom.push.enabled',
'dom.push.serverURL',
'dom.push.udp.wakeupEnabled',
'dom.push.userAgentID',
'dom.serviceWorkers.enabled',
'dom.storage.enabled',
'dom.storageManager.enabled',
'dom.telephony.enabled',
'dom.vibrator.enabled',
'dom.vr.enabled',
'dom.vr.oculus050.enabled',
'dom.w3c_touch_events.enabled',
'dom.webaudio.enabled',
'dom.webnotifications.enabled',
'dom.webnotifications.serviceworker.enabled',
'dom.workers.enabled',
'dom.workers.sharedWorkers.enabled',
'experiments.activeExperiment',
'experiments.enabled',
'experiments.manifest.uri',
'experiments.supported',
'extensions.autoDisableScopes',
'extensions.blocklist.enabled',
'extensions.blocklist.url',
'extensions.e10sBlocksEnabling',
'extensions.enabledScopes',
'extensions.formautofill.addresses.enabled',
'extensions.formautofill.available',
'extensions.formautofill.creditCards.enabled',
'extensions.formautofill.experimental',
'extensions.formautofill.heuristics.enabled',
'extensions.getAddons.cache.enabled',
'extensions.getAddons.showPane',
'extensions.pocket.enabled',
'extensions.screenshots.disabled',
'extensions.screenshots.system-disabled',
'extensions.shield-recipe-client.api_url',
'extensions.shield-recipe-client.enabled',
'extensions.systemAddon.update.url',
'extensions.update.autoUpdateDefault',
'extensions.update.enabled',
'extensions.webcompat-reporter.enabled',
'extensions.webextensions.keepStorageOnUninstall',
'extensions.webextensions.keepUuidOnUninstall',
'extensions.webextensions.remote',
'extensions.webservice.discoverURL',
'font.blacklist.underline_offset',
'font.name.monospace.x-unicode',
'font.name.monospace.x-western',
'font.name.sans-serif.x-unicode',
'font.name.sans-serif.x-western',
'font.name.serif.x-unicode',
'font.name.serif.x-western',
'font.system.whitelist',
'full-screen-api.approval-required',
'full-screen-api.enabled',
'full-screen-api.warning.delay',
'full-screen-api.warning.timeout',
'general.appname.override',
'general.appversion.override',
'general.autoScroll',
'general.buildID.override',
'general.oscpu.override',
'general.platform.override',
'general.useragent.compatMode.firefox',
'general.useragent.locale',
'general.useragent.override',
'general.warnOnAboutConfig',
'geo.enabled',
'geo.security.allowinsecure',
'geo.wifi.logging.enabled',
'geo.wifi.uri',
'geo.wifi.xhr.timeout',
'gfx.direct2d.disabled',
'gfx.downloadable_fonts.enabled',
'gfx.downloadable_fonts.woff2.enabled',
'gfx.font_rendering.graphite.enabled',
'gfx.font_rendering.opentype_svg.enabled',
'gfx.layerscope.enabled',
'gfx.offscreencanvas.enabled',
'intl.accept_languages',
'intl.locale.matchOS',
'intl.regional_prefs.use_os_locales',
'javascript.options.asmjs',
'javascript.options.baselinejit',
'javascript.options.ion',
'javascript.options.wasm',
'javascript.use_us_english_locale',
'keyword.enabled',
'layers.acceleration.disabled',
'layout.css.font-loading-api.enabled',
'layout.css.visited_links_enabled',
'layout.spellcheckDefault',
'lightweightThemes.update.enabled',
'loop.enabled',
'loop.facebook.appId',
'loop.facebook.enabled',
'loop.facebook.fallbackUrl',
'loop.facebook.shareUrl',
'loop.feedback.formURL',
'loop.feedback.manualFormURL',
'loop.logDomains',
'loop.server',
'mathml.disabled',
'media.autoplay.enabled',
'media.block-autoplay-until-in-foreground',
'media.block-play-until-visible',
'media.eme.apiVisible',
'media.eme.chromium-api.enabled',
'media.eme.enabled',
'media.flac.enabled',
'media.getusermedia.audiocapture.enabled',
'media.getusermedia.browser.enabled',
'media.getusermedia.screensharing.allow_on_old_platforms',
'media.getusermedia.screensharing.allowed_domains',
'media.getusermedia.screensharing.enabled',
'media.gmp-eme-adobe.autoupdate',
'media.gmp-eme-adobe.enabled',
'media.gmp-eme-adobe.visible',
'media.gmp-gmpopenh264.autoupdate',
'media.gmp-gmpopenh264.enabled',
'media.gmp-manager.updateEnabled',
'media.gmp-manager.url',
'media.gmp-manager.url.override',
'media.gmp-provider.enabled',
'media.gmp-widevinecdm.autoupdate',
'media.gmp-widevinecdm.enabled',
'media.gmp-widevinecdm.visible',
'media.gmp.trial-create.enabled',
'media.mediasource.enabled',
'media.mediasource.mp4.enabled',
'media.mediasource.webm.audio.enabled',
'media.mediasource.webm.enabled',
'media.mp4.enabled',
'media.navigator.enabled',
'media.navigator.video.enabled',
'media.ogg.enabled',
'media.ogg.flac.enabled',
'media.ondevicechange.enabled',
'media.opus.enabled',
'media.peerconnection.enabled',
'media.peerconnection.ice.default_address_only',
'media.peerconnection.ice.no_host',
'media.peerconnection.ice.tcp',
'media.peerconnection.identity.enabled',
'media.peerconnection.identity.timeout',
'media.peerconnection.turn.disable',
'media.peerconnection.use_document_iceservers',
'media.peerconnection.video.enabled',
'media.raw.enabled',
'media.video_stats.enabled',
'media.wave.enabled',
'media.webm.enabled',
'media.webspeech.recognition.enable',
'media.webspeech.synth.enabled',
'media.wmf.enabled',
'media.wmf.vp9.enabled',
'middlemouse.contentLoadURL',
'network.IDN_show_punycode',
'network.allow-experiments',
'network.auth.subresource-img-cross-origin-http-auth-allow',
'network.captive-portal-service.enabled',
'network.cookie.cookieBehavior',
'network.cookie.leave-secure-alone',
'network.cookie.lifetime.days',
'network.cookie.lifetimePolicy',
'network.cookie.thirdparty.sessionOnly',
'network.dns.blockDotOnion',
'network.dns.disableIPv6',
'network.dns.disablePrefetch',
'network.dns.disablePrefetchFromHTTPS',
'network.dnsCacheEntries',
'network.dnsCacheExpiration',
'network.http.altsvc.enabled',
'network.http.altsvc.oe',
'network.http.fast-fallback-to-IPv4',
'network.http.redirection-limit',
'network.http.referer.XOriginPolicy',
'network.http.referer.XOriginTrimmingPolicy',
'network.http.referer.hideOnionSource',
'network.http.referer.spoofSource',
'network.http.referer.trimmingPolicy',
'network.http.referer.userControlPolicy',
'network.http.sendRefererHeader',
'network.http.sendSecureXSiteReferrer',
'network.http.spdy.enabled',
'network.http.spdy.enabled.deps',
'network.http.spdy.enabled.http2',
'network.http.spdy.enabled.http2draft',
'network.http.spdy.enabled.v3-1',
'network.http.speculative-parallel-limit',
'network.jar.block-remote-files',
'network.jar.open-unsafe-types',
'network.manage-offline-status',
'network.predictor.enable-prefetch',
'network.predictor.enabled',
'network.prefetch-next',
'network.protocol-handler.external.ms-windows-store',
'network.proxy.autoconfig_url.include_path',
'network.proxy.socks_remote_dns',
'network.stricttransportsecurity.preloadlist',
'network.websocket.enabled',
'offline-apps.allow_by_default',
'offline-apps.quota.warn',
'pageThumbs.enabled',
'pdfjs.disabled',
'pdfjs.enableWebGL',
'permissions.memory_only',
'pfs.datasource.url',
'places.history.enabled',
'plugin.default.state',
'plugin.defaultXpi.state',
'plugin.scan.Acrobat',
'plugin.scan.Quicktime',
'plugin.scan.WindowsMediaPlayer',
'plugin.scan.plid.all',
'plugin.sessionPermissionNow.intervalInMinutes',
'plugin.state.flash',
'plugins.click_to_play',
'plugins.enumerable_names',
'plugins.update.notifyUser',
'plugins.update.url',
'privacy.clearOnShutdown.cache',
'privacy.clearOnShutdown.cookies',
'privacy.clearOnShutdown.downloads',
'privacy.clearOnShutdown.formdata',
'privacy.clearOnShutdown.history',
'privacy.clearOnShutdown.offlineApps',
'privacy.clearOnShutdown.openWindows',
'privacy.clearOnShutdown.passwords',
'privacy.clearOnShutdown.sessions',
'privacy.clearOnShutdown.siteSettings',
'privacy.cpd.cache',
'privacy.cpd.cookies',
'privacy.cpd.downloads',
'privacy.cpd.formdata',
'privacy.cpd.history',
'privacy.cpd.offlineApps',
'privacy.cpd.openWindows',
'privacy.cpd.passwords',
'privacy.cpd.sessions',
'privacy.cpd.siteSettings',
'privacy.donottrackheader.enabled',
'privacy.donottrackheader.value',
'privacy.firstparty.isolate',
'privacy.firstparty.isolate.restrict_opener_access',
'privacy.resistFingerprinting',
'privacy.resistFingerprinting.block_mozAddonManager',
'privacy.sanitize.sanitizeOnShutdown',
'privacy.sanitize.timeSpan',
'privacy.trackingprotection.annotate_channels',
'privacy.trackingprotection.enabled',
'privacy.trackingprotection.lower_network_priority',
'privacy.trackingprotection.pbmode.enabled',
'privacy.trackingprotection.ui.enabled',
'privacy.userContext.enabled',
'privacy.userContext.longPressBehavior',
'privacy.userContext.ui.enabled',
'privacy.usercontext.about_newtab_segregation.enabled',
'privacy.window.maxInnerHeight',
'privacy.window.maxInnerWidth',
'reader.parse-on-load.enabled',
'security.OCSP.enabled',
'security.OCSP.require',
'security.ask_for_password',
'security.block_script_with_wrong_mime',
'security.cert_pinning.enforcement_level',
'security.csp.enable',
'security.csp.experimentalEnabled',
'security.dialog_enable_delay',
'security.family_safety.mode',
'security.fileuri.strict_origin_policy',
'security.insecure_field_warning.contextual.enabled',
'security.insecure_password.ui.enabled',
'security.mixed_content.block_active_content',
'security.mixed_content.block_display_content',
'security.mixed_content.send_hsts_priming',
'security.mixed_content.use_hsts',
'security.nocertdb',
'security.password_lifetime',
'security.pki.sha1_enforcement_level',
'security.sandbox.content.level',
'security.sandbox.logging.enabled',
'security.sri.enable',
'security.ssl.disable_session_identifiers',
'security.ssl.enable_ocsp_stapling',
'security.ssl.errorReporting.automatic',
'security.ssl.errorReporting.enabled',
'security.ssl.errorReporting.url',
'security.ssl.require_safe_negotiation',
'security.ssl.treat_unsafe_negotiation_as_broken',
'security.ssl3.dhe_rsa_aes_128_sha',
'security.ssl3.dhe_rsa_aes_256_sha',
'security.ssl3.ecdhe_ecdsa_aes_128_sha',
'security.ssl3.ecdhe_ecdsa_rc4_128_sha',
'security.ssl3.ecdhe_rsa_aes_128_sha',
'security.ssl3.ecdhe_rsa_rc4_128_sha',
'security.ssl3.rsa_aes_128_sha',
'security.ssl3.rsa_aes_256_sha',
'security.ssl3.rsa_des_ede3_sha',
'security.ssl3.rsa_rc4_128_md5',
'security.ssl3.rsa_rc4_128_sha',
'security.tls.enable_0rtt_data',
'security.tls.insecure_fallback_hosts.use_static_list',
'security.tls.unrestricted_rc4_fallback',
'security.tls.version.fallback-limit',
'security.tls.version.max',
'security.tls.version.min',
'security.xpconnect.plugin.unrestricted',
'services.blocklist.addons.collection',
'services.blocklist.gfx.collection',
'services.blocklist.onecrl.collection',
'services.blocklist.plugins.collection',
'services.blocklist.signing.enforced',
'services.blocklist.update_enabled',
'signon.autofillForms',
'signon.autofillForms.http',
'signon.formlessCapture.enabled',
'signon.rememberSignons',
'signon.storeWhenAutocompleteOff',
'social.directories',
'social.enabled',
'social.remote-install.enabled',
'social.share.activationPanelEnabled',
'social.shareDirectory',
'social.toast-notifications.enabled',
'social.whitelist',
'startup.homepage_override_url',
'startup.homepage_welcome_url',
'startup.homepage_welcome_url.additional',
'svg.disabled',
'toolkit.cosmeticAnimations.enabled',
'toolkit.telemetry.archive.enabled',
'toolkit.telemetry.cachedClientID',
'toolkit.telemetry.enabled',
'toolkit.telemetry.newProfilePing.enabled',
'toolkit.telemetry.server',
'toolkit.telemetry.shutdownPingSender.enabled',
'toolkit.telemetry.unified',
'toolkit.telemetry.unifiedIsOptIn',
'toolkit.telemetry.updatePing.enabled',
'ui.submenuDelay',
'ui.use_standins_for_native_colors',
'urlclassifier.trackingTable',
'urlclassifier.trackingTable',
'view_source.tab',
'webchannel.allowObject.urlWhitelist',
'webgl.disable-extensions',
'webgl.disable-fail-if-major-performance-caveat',
'webgl.disabled',
'webgl.dxgl.enabled',
'webgl.enable-debug-renderer-info',
'webgl.enable-webgl2',
'webgl.min_capability_mode',
'xpinstall.signatures.required'
]
for (let i=0, len=ops.length; i < len; i++) {
if (Services.prefs.prefHasUserValue(ops[i])) {
Services.prefs.clearUserPref(ops[i]);
if (!Services.prefs.prefHasUserValue(ops[i])) { console.log("reset", ops[i]); }
}
}
})();
``` ```