249 lines
7.9 KiB
JavaScript
249 lines
7.9 KiB
JavaScript
/***
|
|
Version: up to and including FF/ESR78
|
|
|
|
This will reset the preferences that have been deprecated by Mozilla
|
|
and used in the arkenfox user.js
|
|
|
|
It is in reverse order, so feel free to remove sections that do not apply
|
|
|
|
For instructions see:
|
|
https://github.com/arkenfox/user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
|
***/
|
|
|
|
(() => {
|
|
|
|
if ('undefined' === typeof(Services)) return alert('about:config needs to be the active tab!');
|
|
|
|
const aPREFS = [
|
|
/* deprecated */
|
|
|
|
/* 78 */
|
|
'media.autoplay.enabled.user-gestures-needed',
|
|
'toolkit.cosmeticAnimations.enabled',
|
|
/* 77 */
|
|
'browser.urlbar.oneOffSearches',
|
|
'browser.tabs.remote.allowLinkedWebInFileUriProcess',
|
|
/* 76 */
|
|
'extensions.blocklist.url',
|
|
/* 74 */
|
|
'geo.wifi.uri',
|
|
'geo.wifi.logging.enabled',
|
|
'privacy.userContext.longPressBehavior',
|
|
'webgl.disable-extensions',
|
|
/* 72 */
|
|
'browser.newtabpage.activity-stream.telemetry.ping.endpoint',
|
|
'toolkit.telemetry.hybridContent.enabled',
|
|
'dom.indexedDB.enabled',
|
|
/* 71 */
|
|
'devtools.webide.enabled',
|
|
'devtools.webide.autoinstallADBExtension',
|
|
'offline-apps.allow_by_default',
|
|
/* 69 */
|
|
'gfx.downloadable_fonts.woff2.enabled',
|
|
'plugins.click_to_play',
|
|
'media.autoplay.allow-muted',
|
|
/* 68 */
|
|
'browser.newtabpage.activity-stream.disableSnippets',
|
|
'browser.aboutHomeSnippets.updateUrl',
|
|
'lightweightThemes.update.enabled',
|
|
'security.csp.experimentalEnabled',
|
|
/* F67 */
|
|
'dom.event.highrestimestamp.enabled',
|
|
'browser.newtabpage.activity-stream.asrouter.userprefs.cfr',
|
|
/* 66 */
|
|
'browser.chrome.errorReporter.enabled',
|
|
'browser.chrome.errorReporter.submitUrl',
|
|
'network.allow-experiments',
|
|
/* 65 */
|
|
'browser.urlbar.autocomplete.enabled',
|
|
'browser.fixup.hide_user_pass',
|
|
/* 64 */
|
|
'browser.onboarding.enabled',
|
|
'devtools.webide.autoinstallADBHelper',
|
|
'devtools.webide.adbAddonURL',
|
|
'security.csp.enable_violation_events',
|
|
/* 63 */
|
|
'browser.search.countryCode',
|
|
'app.update.enabled',
|
|
'shield.savant.enabled',
|
|
'browser.chrome.favicons',
|
|
'media.autoplay.enabled',
|
|
'network.cookie.lifetime.days',
|
|
'browser.ctrlTab.previews',
|
|
/* 62 */
|
|
'plugin.state.java',
|
|
/* 61 */
|
|
'experiments.enabled',
|
|
'experiments.manifest.uri',
|
|
'experiments.supported',
|
|
'experiments.activeExperiment',
|
|
'network.jar.block-remote-files',
|
|
'network.jar.open-unsafe-types',
|
|
/* 60 */
|
|
'browser.newtabpage.directory.source',
|
|
'browser.newtabpage.enhanced',
|
|
'browser.newtabpage.introShown',
|
|
'extensions.shield-recipe-client.enabled',
|
|
'extensions.shield-recipe-client.api_url',
|
|
'browser.newtabpage.activity-stream.enabled',
|
|
'dom.workers.enabled',
|
|
/* 59 */
|
|
'intl.locale.matchOS',
|
|
'general.useragent.locale',
|
|
'datareporting.healthreport.about.reportUrl',
|
|
'dom.flyweb.enabled',
|
|
'security.mixed_content.use_hsts',
|
|
'security.mixed_content.send_hsts_priming',
|
|
'network.http.referer.userControlPolicy',
|
|
'security.xpconnect.plugin.unrestricted',
|
|
'media.getusermedia.screensharing.allowed_domains',
|
|
'camera.control.face_detection.enabled',
|
|
'dom.disable_window_status_change',
|
|
'dom.idle-observers-api.enabled',
|
|
/* 58 */
|
|
'browser.crashReports.unsubmittedCheck.autoSubmit',
|
|
/* 57 */
|
|
'social.whitelist',
|
|
'social.toast-notifications.enabled',
|
|
'social.shareDirectory',
|
|
'social.remote-install.enabled',
|
|
'social.directories',
|
|
'social.share.activationPanelEnabled',
|
|
'social.enabled',
|
|
'media.eme.chromium-api.enabled',
|
|
'devtools.webide.autoinstallFxdtAdapters',
|
|
'browser.casting.enabled',
|
|
'browser.bookmarks.showRecentlyBookmarked',
|
|
/* 56 */
|
|
'extensions.screenshots.system-disabled',
|
|
'extensions.formautofill.experimental',
|
|
/* 55 */
|
|
'geo.security.allowinsecure',
|
|
'browser.selfsupport.enabled',
|
|
'browser.selfsupport.url',
|
|
'browser.newtabpage.directory.ping',
|
|
'browser.formfill.saveHttpsForms',
|
|
'browser.formautofill.enabled',
|
|
'dom.enable_user_timing',
|
|
'dom.keyboardevent.code.enabled',
|
|
'browser.tabs.animate',
|
|
'browser.fullscreen.animate',
|
|
/* 54 */
|
|
'browser.safebrowsing.reportMalwareMistakeURL',
|
|
'browser.safebrowsing.reportPhishMistakeURL',
|
|
'media.eme.apiVisible',
|
|
'dom.archivereader.enabled',
|
|
/* 53 */
|
|
'security.tls.unrestricted_rc4_fallback',
|
|
'plugin.scan.Acrobat',
|
|
'plugin.scan.Quicktime',
|
|
'plugin.scan.WindowsMediaPlayer',
|
|
'media.getusermedia.screensharing.allow_on_old_platforms',
|
|
'dom.beforeAfterKeyboardEvent.enabled',
|
|
/* 52 */
|
|
'network.http.sendSecureXSiteReferrer',
|
|
'media.gmp-eme-adobe.enabled',
|
|
'media.gmp-eme-adobe.visible',
|
|
'media.gmp-eme-adobe.autoupdate',
|
|
'dom.telephony.enabled',
|
|
'dom.battery.enabled',
|
|
/* 51 */
|
|
'media.block-play-until-visible',
|
|
'dom.vr.oculus050.enabled',
|
|
'network.http.spdy.enabled.v3-1',
|
|
/* 50 */
|
|
'browser.usedOnWindows10.introURL',
|
|
'plugins.update.notifyUser',
|
|
'browser.safebrowsing.enabled',
|
|
'security.ssl3.ecdhe_ecdsa_rc4_128_sha',
|
|
'security.ssl3.ecdhe_rsa_rc4_128_sha',
|
|
'security.ssl3.rsa_rc4_128_md5',
|
|
'security.ssl3.rsa_rc4_128_sha',
|
|
'plugins.update.url',
|
|
/* 49 */
|
|
'loop.enabled',
|
|
'loop.server',
|
|
'loop.feedback.formURL',
|
|
'loop.feedback.manualFormURL',
|
|
'loop.facebook.appId',
|
|
'loop.facebook.enabled',
|
|
'loop.facebook.fallbackUrl',
|
|
'loop.facebook.shareUrl',
|
|
'loop.logDomains',
|
|
'dom.disable_window_open_feature.scrollbars',
|
|
'dom.push.udp.wakeupEnabled',
|
|
/* 48 */
|
|
'browser.urlbar.unifiedcomplete',
|
|
/* 47 */
|
|
'toolkit.telemetry.unifiedIsOptIn',
|
|
'datareporting.healthreport.about.reportUrlUnified',
|
|
'browser.history.allowPopState',
|
|
'browser.history.allowPushState',
|
|
'browser.history.allowReplaceState',
|
|
/* 46 */
|
|
'datareporting.healthreport.service.enabled',
|
|
'datareporting.healthreport.documentServerURI',
|
|
'datareporting.policy.dataSubmissionEnabled.v2',
|
|
'browser.safebrowsing.appRepURL',
|
|
'browser.polaris.enabled',
|
|
'browser.pocket.enabled',
|
|
'browser.pocket.api',
|
|
'browser.pocket.site',
|
|
'browser.pocket.oAuthConsumerKey',
|
|
/* 45 */
|
|
'browser.sessionstore.privacy_level_deferred',
|
|
/* 44 */
|
|
'browser.safebrowsing.provider.google.appRepURL',
|
|
'security.tls.insecure_fallback_hosts.use_static_list',
|
|
'dom.workers.sharedWorkers.enabled',
|
|
'dom.disable_image_src_set',
|
|
/* 43 */
|
|
'browser.safebrowsing.gethashURL',
|
|
'browser.safebrowsing.updateURL',
|
|
'browser.safebrowsing.malware.reportURL',
|
|
'browser.trackingprotection.gethashURL',
|
|
'browser.trackingprotection.updateURL',
|
|
'pfs.datasource.url',
|
|
'browser.search.showOneOffButtons',
|
|
/* 42 and earlier */
|
|
'privacy.clearOnShutdown.passwords', // 42
|
|
'full-screen-api.approval-required', // 42
|
|
'browser.safebrowsing.reportErrorURL', // 41
|
|
'browser.safebrowsing.reportGenericURL', // 41
|
|
'browser.safebrowsing.reportMalwareErrorURL', // 41
|
|
'browser.safebrowsing.reportMalwareURL', // 41
|
|
'browser.safebrowsing.reportURL', // 41
|
|
'plugins.enumerable_names', // 41
|
|
'network.http.spdy.enabled.http2draft', // 41
|
|
'camera.control.autofocus_moving_callback.enabled', // 37
|
|
'privacy.donottrackheader.value', // 36
|
|
'network.websocket.enabled', // 35
|
|
'dom.network.enabled', // 31
|
|
'pageThumbs.enabled', // 25
|
|
|
|
/* reset parrot: check your open about:config after running the script */
|
|
'_user.js.parrot'
|
|
];
|
|
|
|
console.clear();
|
|
|
|
let c = 0;
|
|
for (const sPname of aPREFS) {
|
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
|
Services.prefs.clearUserPref(sPname);
|
|
if (!Services.prefs.prefHasUserValue(sPname)) {
|
|
console.info('reset', sPname);
|
|
c++;
|
|
} else console.warn('failed to reset', sPname);
|
|
}
|
|
}
|
|
|
|
focus();
|
|
|
|
const d = (c==1) ? ' pref' : ' prefs';
|
|
alert(c ? 'successfully reset ' + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
|
|
|
return 'all done';
|
|
|
|
})();
|