2020-07-23 13:00:23 +02:00
|
|
|
/***
|
2021-07-07 16:25:08 +02:00
|
|
|
This will reset the preferences that have been removed completely from the arkenfox user.js.
|
2020-07-23 13:00:23 +02:00
|
|
|
|
2021-08-27 12:39:40 +02:00
|
|
|
Last updated: 27-August-2021
|
2020-07-23 13:00:23 +02:00
|
|
|
|
2021-07-07 16:25:08 +02:00
|
|
|
For instructions see:
|
|
|
|
https://github.com/arkenfox/user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
2020-07-23 13:00:23 +02:00
|
|
|
***/
|
2021-07-07 16:25:08 +02:00
|
|
|
|
|
|
|
(() => {
|
|
|
|
|
|
|
|
if ('undefined' === typeof(Services)) return alert('about:config needs to be the active tab!');
|
|
|
|
|
|
|
|
const aPREFS = [
|
2021-03-05 11:15:26 +01:00
|
|
|
/* removed in arkenfox user.js */
|
2021-08-22 10:27:15 +02:00
|
|
|
/* 91 */
|
|
|
|
'alerts.showFavicons',
|
2021-08-26 08:27:32 +02:00
|
|
|
'dom.allow_cut_copy',
|
2021-08-22 10:27:15 +02:00
|
|
|
'dom.battery.enabled',
|
|
|
|
'dom.storage.enabled',
|
|
|
|
'dom.vibrator.enabled',
|
|
|
|
'general.warnOnAboutConfig',
|
|
|
|
'gfx.direct2d.disabled',
|
|
|
|
'layers.acceleration.disabled',
|
|
|
|
'media.media-capabilities.enabled',
|
2021-08-27 12:39:40 +02:00
|
|
|
'security.insecure_connection_icon.enabled',
|
2021-08-22 10:27:15 +02:00
|
|
|
/* 79-90 */
|
|
|
|
'browser.newtabpage.activity-stream.asrouter.providers.snippets',
|
|
|
|
'browser.send_pings.require_same_host',
|
|
|
|
'browser.urlbar.usepreloadedtopurls.enabled',
|
|
|
|
'dom.IntersectionObserver.enabled',
|
|
|
|
'extensions.screenshots.upload-disabled',
|
|
|
|
'media.gmp-widevinecdm.visible',
|
|
|
|
'network.http.redirection-limit',
|
|
|
|
'privacy.partition.network_state',
|
|
|
|
'security.ssl.enable_ocsp_stapling',
|
|
|
|
'security.ssl3.dhe_rsa_aes_128_sha',
|
|
|
|
'security.ssl3.dhe_rsa_aes_256_sha',
|
|
|
|
'webgl.min_capability_mode',
|
|
|
|
/* 69-78 */
|
|
|
|
'browser.cache.disk_cache_ssl',
|
|
|
|
'browser.search.geoip.url',
|
|
|
|
'browser.search.region',
|
|
|
|
'browser.sessionhistory.max_entries',
|
|
|
|
'dom.push.connection.enabled',
|
|
|
|
'dom.push.serverURL',
|
|
|
|
'extensions.getAddons.discovery.api_url',
|
|
|
|
'extensions.htmlaboutaddons.discover.enabled',
|
|
|
|
'extensions.webservice.discoverURL',
|
|
|
|
'intl.locale.requested',
|
|
|
|
'intl.regional_prefs.use_os_locales',
|
|
|
|
'media.block-autoplay-until-in-foreground',
|
|
|
|
'middlemouse.paste',
|
|
|
|
'plugin.sessionPermissionNow.intervalInMinutes',
|
|
|
|
'privacy.usercontext.about_newtab_segregation.enabled',
|
|
|
|
'security.insecure_connection_icon.pbmode.enabled',
|
|
|
|
'security.insecure_connection_text.pbmode.enabled',
|
|
|
|
'webgl.dxgl.enabled',
|
2021-08-19 04:14:23 +02:00
|
|
|
/* 61-68 */
|
2020-07-23 13:00:23 +02:00
|
|
|
'app.update.service.enabled',
|
|
|
|
'app.update.silent',
|
|
|
|
'app.update.staging.enabled',
|
|
|
|
'browser.cache.disk.capacity',
|
|
|
|
'browser.cache.disk.smart_size.enabled',
|
|
|
|
'browser.cache.disk.smart_size.first_run',
|
|
|
|
'browser.cache.offline.insecure.enable',
|
2021-08-22 10:27:15 +02:00
|
|
|
'browser.contentblocking.enabled',
|
|
|
|
'browser.eme.ui.enabled',
|
|
|
|
'browser.laterrun.enabled',
|
|
|
|
'browser.offline-apps.notify',
|
|
|
|
'browser.rights.3.shown',
|
|
|
|
'browser.safebrowsing.blockedURIs.enabled',
|
|
|
|
'browser.safebrowsing.downloads.remote.block_dangerous',
|
|
|
|
'browser.safebrowsing.downloads.remote.block_dangerous_host',
|
|
|
|
'browser.safebrowsing.provider.google.gethashURL',
|
2020-07-23 13:00:23 +02:00
|
|
|
'browser.safebrowsing.provider.google.reportMalwareMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google.reportPhishMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google.reportURL',
|
2021-08-22 10:27:15 +02:00
|
|
|
'browser.safebrowsing.provider.google.updateURL',
|
2020-07-23 13:00:23 +02:00
|
|
|
'browser.safebrowsing.provider.google4.dataSharing.enabled',
|
|
|
|
'browser.safebrowsing.provider.google4.dataSharingURL',
|
2021-08-22 10:27:15 +02:00
|
|
|
'browser.safebrowsing.provider.google4.gethashURL',
|
2020-07-23 13:00:23 +02:00
|
|
|
'browser.safebrowsing.provider.google4.reportMalwareMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google4.reportPhishMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google4.reportURL',
|
2021-08-22 10:27:15 +02:00
|
|
|
'browser.safebrowsing.provider.google4.updateURL',
|
|
|
|
'browser.safebrowsing.provider.mozilla.gethashURL',
|
|
|
|
'browser.safebrowsing.provider.mozilla.updateURL',
|
2020-07-23 13:00:23 +02:00
|
|
|
'browser.safebrowsing.reportPhishURL',
|
|
|
|
'browser.sessionhistory.max_total_viewers',
|
2021-08-22 10:27:15 +02:00
|
|
|
'browser.sessionstore.max_windows_undo',
|
|
|
|
'browser.slowStartup.maxSamples',
|
|
|
|
'browser.slowStartup.notificationDisabled',
|
|
|
|
'browser.slowStartup.samples',
|
|
|
|
'browser.storageManager.enabled',
|
|
|
|
'browser.urlbar.autoFill.typed',
|
2020-07-23 13:00:23 +02:00
|
|
|
'browser.urlbar.filter.javascript',
|
2021-08-22 10:27:15 +02:00
|
|
|
'browser.urlbar.maxHistoricalSearchSuggestions',
|
|
|
|
'browser.urlbar.userMadeSearchSuggestionsChoice',
|
2020-07-23 13:00:23 +02:00
|
|
|
'canvas.capturestream.enabled',
|
2021-08-22 10:27:15 +02:00
|
|
|
'dom.allow_scripts_to_close_windows',
|
|
|
|
'dom.disable_window_flip',
|
|
|
|
'dom.forms.datetime',
|
2020-07-23 13:00:23 +02:00
|
|
|
'dom.imagecapture.enabled',
|
|
|
|
'dom.popup_maximum',
|
2021-08-22 10:27:15 +02:00
|
|
|
'extensions.webextensions.keepStorageOnUninstall',
|
|
|
|
'extensions.webextensions.keepUuidOnUninstall',
|
|
|
|
'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',
|
2020-07-23 13:00:23 +02:00
|
|
|
'gfx.offscreencanvas.enabled',
|
|
|
|
'javascript.options.shared_memory',
|
2021-08-22 10:27:15 +02:00
|
|
|
'layout.css.font-loading-api.enabled',
|
2020-07-23 13:00:23 +02:00
|
|
|
'media.gmp-gmpopenh264.autoupdate',
|
|
|
|
'media.gmp-gmpopenh264.enabled',
|
|
|
|
'media.gmp-manager.updateEnabled',
|
|
|
|
'media.gmp-manager.url',
|
|
|
|
'media.gmp-manager.url.override',
|
|
|
|
'media.gmp-widevinecdm.autoupdate',
|
2021-08-22 10:27:15 +02:00
|
|
|
'media.gmp.trial-create.enabled',
|
|
|
|
'media.navigator.video.enabled',
|
|
|
|
'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',
|
|
|
|
'network.auth.subresource-img-cross-origin-http-auth-allow',
|
2020-07-23 13:00:23 +02:00
|
|
|
'network.cookie.leave-secure-alone',
|
|
|
|
'network.cookie.same-site.enabled',
|
|
|
|
'network.dnsCacheEntries',
|
|
|
|
'network.dnsCacheExpiration',
|
2021-08-22 10:27:15 +02:00
|
|
|
'network.http.fast-fallback-to-IPv4',
|
2020-07-23 13:00:23 +02:00
|
|
|
'network.proxy.autoconfig_url.include_path',
|
2021-08-22 10:27:15 +02:00
|
|
|
'offline-apps.quota.warn',
|
2020-07-23 13:00:23 +02:00
|
|
|
'pdfjs.enableWebGL',
|
|
|
|
'plugin.default.state',
|
|
|
|
'plugin.defaultXpi.state',
|
|
|
|
'plugin.scan.plid.all',
|
|
|
|
'privacy.trackingprotection.annotate_channels',
|
|
|
|
'privacy.trackingprotection.lower_network_priority',
|
|
|
|
'privacy.trackingprotection.pbmode.enabled',
|
2021-08-22 10:27:15 +02:00
|
|
|
'privacy.trackingprotection.ui.enabled',
|
|
|
|
'security.data_uri.block_toplevel_data_uri_navigations',
|
|
|
|
'security.insecure_field_warning.contextual.enabled',
|
|
|
|
'security.insecure_password.ui.enabled',
|
|
|
|
'security.tls.version.fallback-limit',
|
2020-07-23 13:00:23 +02:00
|
|
|
'services.blocklist.addons.collection',
|
|
|
|
'services.blocklist.gfx.collection',
|
|
|
|
'services.blocklist.onecrl.collection',
|
|
|
|
'services.blocklist.plugins.collection',
|
2021-08-22 10:27:15 +02:00
|
|
|
'services.blocklist.signing.enforced',
|
2020-07-23 13:00:23 +02:00
|
|
|
'services.blocklist.update_enabled',
|
2021-08-22 10:27:15 +02:00
|
|
|
'signon.autofillForms.http',
|
|
|
|
'signon.storeWhenAutocompleteOff',
|
2020-07-23 13:00:23 +02:00
|
|
|
'toolkit.telemetry.cachedClientID',
|
2021-08-22 10:27:15 +02:00
|
|
|
'urlclassifier.trackingTable',
|
|
|
|
'xpinstall.whitelist.required',
|
|
|
|
/* 60 or lower */
|
|
|
|
'browser.migrate.automigrate.enabled',
|
|
|
|
'browser.search.geoip.timeout',
|
|
|
|
'browser.search.reset.enabled',
|
|
|
|
'browser.search.reset.whitelist',
|
|
|
|
'browser.stopReloadAnimation.enabled',
|
|
|
|
'browser.tabs.insertRelatedAfterCurrent',
|
|
|
|
'browser.tabs.loadDivertedInBackground',
|
|
|
|
'browser.tabs.loadInBackground',
|
|
|
|
'browser.tabs.selectOwnerOnClose',
|
|
|
|
'browser.urlbar.clickSelectsAll',
|
|
|
|
'browser.urlbar.doubleClickSelectsAll',
|
|
|
|
'device.storage.enabled',
|
|
|
|
'dom.keyboardevent.dispatch_during_composition',
|
|
|
|
'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.vr.oculus.enabled',
|
|
|
|
'dom.vr.openvr.enabled',
|
|
|
|
'dom.vr.osvr.enabled',
|
|
|
|
'extensions.pocket.api',
|
|
|
|
'extensions.pocket.oAuthConsumerKey',
|
|
|
|
'extensions.pocket.site',
|
|
|
|
'general.useragent.compatMode.firefox',
|
|
|
|
'geo.wifi.xhr.timeout',
|
|
|
|
'gfx.layerscope.enabled',
|
|
|
|
'media.flac.enabled',
|
|
|
|
'media.mediasource.enabled',
|
|
|
|
'media.mediasource.mp4.enabled',
|
|
|
|
'media.mediasource.webm.audio.enabled',
|
|
|
|
'media.mediasource.webm.enabled',
|
|
|
|
'media.mp4.enabled',
|
|
|
|
'media.ogg.enabled',
|
|
|
|
'media.ogg.flac.enabled',
|
|
|
|
'media.opus.enabled',
|
|
|
|
'media.raw.enabled',
|
|
|
|
'media.wave.enabled',
|
|
|
|
'media.webm.enabled',
|
|
|
|
'media.webspeech.recognition.enable',
|
|
|
|
'media.wmf.amd.vp9.enabled',
|
|
|
|
'media.wmf.enabled',
|
|
|
|
'media.wmf.vp9.enabled',
|
|
|
|
'network.dns.blockDotOnion',
|
|
|
|
'network.stricttransportsecurity.preloadlist',
|
|
|
|
'security.block_script_with_wrong_mime',
|
|
|
|
'security.fileuri.strict_origin_policy',
|
|
|
|
'security.sri.enable',
|
|
|
|
'services.sync.enabled',
|
|
|
|
'ui.submenuDelay',
|
|
|
|
'webextensions.storage.sync.enabled',
|
|
|
|
'webextensions.storage.sync.serverURL',
|
|
|
|
// excluding these e10 settings
|
|
|
|
// 'browser.tabs.remote.autostart',
|
|
|
|
// 'browser.tabs.remote.autostart.2',
|
|
|
|
// 'browser.tabs.remote.force-enable',
|
|
|
|
// 'browser.tabs.remote.separateFileUriProcess',
|
|
|
|
// 'extensions.e10sBlocksEnabling',
|
|
|
|
// 'extensions.webextensions.remote',
|
|
|
|
// 'dom.ipc.processCount',
|
|
|
|
// 'dom.ipc.shims.enabledWarnings',
|
|
|
|
// 'dom.ipc.processCount.extension',
|
|
|
|
// 'dom.ipc.processCount.file',
|
|
|
|
// 'security.sandbox.content.level',
|
|
|
|
// 'dom.ipc.plugins.sandbox-level.default',
|
|
|
|
// 'dom.ipc.plugins.sandbox-level.flash',
|
|
|
|
// 'security.sandbox.logging.enabled',
|
2020-07-23 13:00:23 +02:00
|
|
|
/* reset parrot: check your open about:config after running the script */
|
|
|
|
'_user.js.parrot'
|
2021-07-07 16:25:08 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
console.clear();
|
2020-07-23 13:00:23 +02:00
|
|
|
|
|
|
|
let c = 0;
|
2021-07-07 16:25:08 +02:00
|
|
|
for (const sPname of aPREFS) {
|
|
|
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
|
|
|
Services.prefs.clearUserPref(sPname);
|
|
|
|
if (!Services.prefs.prefHasUserValue(sPname)) {
|
|
|
|
console.info('reset', sPname);
|
2020-07-23 13:00:23 +02:00
|
|
|
c++;
|
2021-07-07 16:25:08 +02:00
|
|
|
} else console.warn('failed to reset', sPname);
|
2020-07-23 13:00:23 +02:00
|
|
|
}
|
|
|
|
}
|
2021-07-07 16:25:08 +02:00
|
|
|
|
2020-07-23 13:00:23 +02:00
|
|
|
focus();
|
2021-07-07 16:25:08 +02:00
|
|
|
|
|
|
|
const d = (c==1) ? ' pref' : ' prefs';
|
|
|
|
alert(c ? 'successfully reset ' + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
|
|
|
|
|
|
|
return 'all done';
|
|
|
|
|
2020-07-23 13:00:23 +02:00
|
|
|
})();
|