2018-05-25 19:00:04 +02:00
|
|
|
/***
|
|
|
|
This will reset the preferences that have been removed completely from the ghacks user.js.
|
|
|
|
|
2019-11-10 00:25:52 +01:00
|
|
|
Last updated: 09-November-2019
|
2018-05-25 19:00:04 +02:00
|
|
|
|
|
|
|
For instructions see:
|
|
|
|
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
|
|
|
***/
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
let ops = [
|
|
|
|
/* removed in ghacks user.js v52-57 */
|
|
|
|
/* 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', // default is false anyway
|
|
|
|
'dom.vr.oculus.enabled', // covered by dom.vr.enabled
|
|
|
|
'dom.vr.openvr.enabled', // ditto
|
|
|
|
'dom.vr.osvr.enabled', // ditto
|
|
|
|
'extensions.pocket.api', // covered by extensions.pocket.enabled
|
|
|
|
'extensions.pocket.oAuthConsumerKey', // ditto
|
|
|
|
'extensions.pocket.site', // ditto
|
|
|
|
/* 56-alpha: none */
|
|
|
|
/* 57-alpha */
|
|
|
|
'geo.wifi.xhr.timeout', // covered by geo.enabled
|
|
|
|
'browser.search.geoip.timeout', // ditto
|
|
|
|
'media.webspeech.recognition.enable', // default is false anyway
|
|
|
|
'gfx.layerscope.enabled', // default is false anyway
|
|
|
|
/* 58-alpha */
|
|
|
|
// 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',
|
|
|
|
'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',
|
|
|
|
/* 59-alpha */
|
|
|
|
'browser.stopReloadAnimation.enabled',
|
|
|
|
'browser.tabs.insertRelatedAfterCurrent',
|
|
|
|
'browser.tabs.loadDivertedInBackground',
|
|
|
|
'browser.tabs.loadInBackground',
|
|
|
|
'browser.tabs.selectOwnerOnClose',
|
|
|
|
'browser.urlbar.clickSelectsAll',
|
|
|
|
'browser.urlbar.doubleClickSelectsAll',
|
|
|
|
'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.wmf.amd.vp9.enabled',
|
|
|
|
'media.wmf.enabled',
|
|
|
|
'media.wmf.vp9.enabled',
|
|
|
|
'ui.submenuDelay',
|
|
|
|
/* 60-beta - these were all at default anyway */
|
|
|
|
'device.storage.enabled',
|
|
|
|
'general.useragent.compatMode.firefox',
|
|
|
|
'network.dns.blockDotOnion',
|
|
|
|
'network.stricttransportsecurity.preloadlist',
|
|
|
|
'security.block_script_with_wrong_mime',
|
|
|
|
'security.fileuri.strict_origin_policy',
|
|
|
|
'security.sri.enable',
|
2018-05-26 18:49:39 +02:00
|
|
|
/* 61-beta */
|
2018-05-29 18:12:07 +02:00
|
|
|
'browser.laterrun.enabled',
|
2018-05-25 19:00:04 +02:00
|
|
|
'browser.offline-apps.notify',
|
2018-05-29 18:12:07 +02:00
|
|
|
'browser.rights.3.shown',
|
2018-07-06 15:44:53 +02:00
|
|
|
'browser.slowStartup.maxSamples',
|
2018-05-29 18:12:07 +02:00
|
|
|
'browser.slowStartup.notificationDisabled',
|
|
|
|
'browser.slowStartup.samples',
|
2018-06-04 02:27:20 +02:00
|
|
|
'browser.storageManager.enabled',
|
2018-05-25 19:00:04 +02:00
|
|
|
'dom.allow_scripts_to_close_windows',
|
|
|
|
'dom.disable_window_flip',
|
|
|
|
'network.http.fast-fallback-to-IPv4',
|
|
|
|
'offline-apps.quota.warn',
|
2018-06-04 02:27:20 +02:00
|
|
|
'services.blocklist.signing.enforced',
|
2018-08-16 16:36:48 +02:00
|
|
|
/* 62-beta */
|
|
|
|
'browser.urlbar.autoFill.typed',
|
2018-08-20 16:54:47 +02:00
|
|
|
'security.tls.version.fallback-limit',
|
2018-09-30 17:24:33 +02:00
|
|
|
/* 63-beta */
|
2018-09-13 00:27:26 +02:00
|
|
|
'extensions.webextensions.keepStorageOnUninstall',
|
|
|
|
'extensions.webextensions.keepUuidOnUninstall',
|
2018-09-30 17:24:33 +02:00
|
|
|
'privacy.trackingprotection.ui.enabled',
|
2018-11-19 01:37:42 +01:00
|
|
|
/* 64-beta */
|
|
|
|
'browser.eme.ui.enabled',
|
2018-12-11 17:49:38 +01:00
|
|
|
'browser.sessionstore.max_windows_undo',
|
2018-12-11 18:44:19 +01:00
|
|
|
'network.auth.subresource-img-cross-origin-http-auth-allow',
|
2018-12-12 14:09:03 +01:00
|
|
|
'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',
|
2018-12-12 14:22:58 +01:00
|
|
|
'media.navigator.video.enabled',
|
2019-01-30 13:38:07 +01:00
|
|
|
/* 65-beta */
|
|
|
|
'browser.contentblocking.enabled',
|
2019-01-30 17:16:12 +01:00
|
|
|
'browser.urlbar.maxHistoricalSearchSuggestions',
|
2019-04-22 16:35:51 +02:00
|
|
|
/* 67-beta */
|
2019-04-28 04:58:35 +02:00
|
|
|
'app.update.service.enabled',
|
|
|
|
'app.update.silent',
|
2019-04-30 12:10:59 +02:00
|
|
|
'app.update.staging.enabled',
|
2019-04-27 16:06:48 +02:00
|
|
|
'browser.cache.disk.capacity',
|
|
|
|
'browser.cache.disk.smart_size.enabled',
|
|
|
|
'browser.cache.disk.smart_size.first_run',
|
2019-05-05 19:33:16 +02:00
|
|
|
'browser.cache.offline.insecure.enable',
|
2019-04-29 07:31:17 +02:00
|
|
|
'browser.safebrowsing.downloads.remote.url',
|
2019-05-03 04:09:35 +02:00
|
|
|
'browser.safebrowsing.provider.google.reportMalwareMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google.reportPhishMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google.reportURL',
|
2019-05-05 19:33:16 +02:00
|
|
|
'browser.safebrowsing.provider.google4.dataSharing.enabled',
|
2019-05-03 04:09:35 +02:00
|
|
|
'browser.safebrowsing.provider.google4.dataSharingURL',
|
|
|
|
'browser.safebrowsing.provider.google4.reportMalwareMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google4.reportPhishMistakeURL',
|
|
|
|
'browser.safebrowsing.provider.google4.reportURL',
|
|
|
|
'browser.safebrowsing.reportPhishURL',
|
2019-05-03 09:48:12 +02:00
|
|
|
'browser.sessionhistory.max_total_viewers',
|
2019-05-03 02:41:08 +02:00
|
|
|
'browser.urlbar.filter.javascript',
|
2019-04-28 04:58:35 +02:00
|
|
|
'canvas.capturestream.enabled',
|
2019-05-03 09:36:55 +02:00
|
|
|
'dom.imagecapture.enabled',
|
2019-05-03 02:41:08 +02:00
|
|
|
'dom.popup_maximum',
|
|
|
|
'gfx.offscreencanvas.enabled',
|
|
|
|
'javascript.options.shared_memory',
|
2019-04-30 12:05:03 +02:00
|
|
|
'media.gmp-gmpopenh264.autoupdate',
|
2019-04-30 12:10:59 +02:00
|
|
|
'media.gmp-gmpopenh264.enabled',
|
2019-04-30 12:05:03 +02:00
|
|
|
'media.gmp-manager.updateEnabled',
|
2019-04-28 13:12:11 +02:00
|
|
|
'media.gmp-manager.url',
|
|
|
|
'media.gmp-manager.url.override',
|
|
|
|
'media.gmp.trial-create.enabled',
|
2019-04-30 12:10:59 +02:00
|
|
|
'media.gmp-widevinecdm.autoupdate',
|
2019-05-05 19:33:16 +02:00
|
|
|
'network.cookie.leave-secure-alone',
|
|
|
|
'network.cookie.same-site.enabled',
|
2019-05-03 09:49:47 +02:00
|
|
|
'network.dnsCacheEntries',
|
|
|
|
'network.dnsCacheExpiration',
|
2019-05-03 02:41:08 +02:00
|
|
|
'network.proxy.autoconfig_url.include_path',
|
2019-04-30 12:10:59 +02:00
|
|
|
'pdfjs.enableWebGL',
|
2019-04-29 13:14:50 +02:00
|
|
|
'plugin.default.state',
|
|
|
|
'plugin.defaultXpi.state',
|
|
|
|
'plugin.scan.plid.all',
|
2019-05-05 19:33:16 +02:00
|
|
|
'security.data_uri.block_toplevel_data_uri_navigations',
|
2019-05-03 09:48:12 +02:00
|
|
|
'security.insecure_field_warning.contextual.enabled',
|
2019-05-03 02:41:08 +02:00
|
|
|
'security.insecure_password.ui.enabled',
|
2019-05-03 09:48:12 +02:00
|
|
|
'signon.autofillForms.http',
|
2019-05-03 02:41:08 +02:00
|
|
|
'signon.storeWhenAutocompleteOff',
|
2019-05-05 19:33:16 +02:00
|
|
|
'xpinstall.whitelist.required',
|
2019-05-03 02:41:08 +02:00
|
|
|
/* 67-beta: Blocklist, SB & TP cleanup: these were all inactive */
|
2019-04-29 06:52:58 +02:00
|
|
|
'browser.safebrowsing.downloads.remote.block_dangerous',
|
|
|
|
'browser.safebrowsing.downloads.remote.block_dangerous_host',
|
|
|
|
'browser.safebrowsing.blockedURIs.enabled',
|
|
|
|
'browser.safebrowsing.provider.google.gethashURL',
|
|
|
|
'browser.safebrowsing.provider.google.updateURL',
|
|
|
|
'browser.safebrowsing.provider.google4.gethashURL',
|
|
|
|
'browser.safebrowsing.provider.google4.updateURL',
|
|
|
|
'browser.safebrowsing.provider.mozilla.gethashURL',
|
|
|
|
'browser.safebrowsing.provider.mozilla.updateURL',
|
2019-04-30 15:51:13 +02:00
|
|
|
'browser.urlbar.userMadeSearchSuggestionsChoice',
|
2019-04-29 06:52:58 +02:00
|
|
|
'privacy.trackingprotection.annotate_channels',
|
|
|
|
'privacy.trackingprotection.enabled',
|
|
|
|
'privacy.trackingprotection.lower_network_priority',
|
|
|
|
'privacy.trackingprotection.pbmode.enabled',
|
|
|
|
'services.blocklist.addons.collection',
|
|
|
|
'services.blocklist.gfx.collection',
|
2019-04-30 15:51:13 +02:00
|
|
|
'services.blocklist.onecrl.collection',
|
|
|
|
'services.blocklist.plugins.collection',
|
|
|
|
'services.blocklist.update_enabled',
|
2019-04-29 06:52:58 +02:00
|
|
|
'urlclassifier.trackingTable',
|
2019-06-07 19:51:49 +02:00
|
|
|
/* 68-beta */
|
2019-07-15 17:54:23 +02:00
|
|
|
'dom.forms.datetime',
|
2019-06-11 17:10:44 +02:00
|
|
|
'font.blacklist.underline_offset',
|
2019-06-11 17:50:08 +02:00
|
|
|
'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',
|
2019-06-12 15:35:05 +02:00
|
|
|
'layout.css.font-loading-api.enabled',
|
2019-06-07 19:51:49 +02:00
|
|
|
'toolkit.telemetry.cachedClientID',
|
2019-09-01 23:06:10 +02:00
|
|
|
/* 69-beta */
|
|
|
|
'plugin.sessionPermissionNow.intervalInMinutes',
|
2019-09-09 23:45:33 +02:00
|
|
|
/* 70-beta */
|
|
|
|
'browser.cache.disk_cache_ssl',
|
2019-10-14 03:14:50 +02:00
|
|
|
'browser.sessionhistory.max_entries',
|
2019-10-27 05:50:59 +01:00
|
|
|
'dom.push.connection.enabled',
|
|
|
|
'dom.push.serverURL',
|
2019-09-12 17:52:46 +02:00
|
|
|
'extensions.getAddons.discovery.api_url',
|
|
|
|
'extensions.htmlaboutaddons.discover.enabled',
|
|
|
|
'extensions.webservice.discoverURL',
|
2019-10-05 17:09:19 +02:00
|
|
|
'intl.locale.requested',
|
|
|
|
'intl.regional_prefs.use_os_locales',
|
2019-11-10 00:25:52 +01:00
|
|
|
'privacy.usercontext.about_newtab_segregation.enabled'
|
2019-10-27 05:50:59 +01:00
|
|
|
'security.insecure_connection_icon.pbmode.enabled',
|
|
|
|
'security.insecure_connection_text.pbmode.enabled',
|
2019-10-15 11:28:52 +02:00
|
|
|
'webgl.dxgl.enabled',
|
2018-05-25 19:00:04 +02:00
|
|
|
/* reset parrot: check your open about:config after running the script */
|
|
|
|
'_user.js.parrot'
|
|
|
|
]
|
|
|
|
|
|
|
|
if("undefined" === typeof(Services)) {
|
|
|
|
alert("about:config needs to be the active tab!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
let c = 0;
|
|
|
|
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]);
|
|
|
|
c++;
|
|
|
|
} else { console.log("failed to reset", ops[i]); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
focus();
|
|
|
|
|
|
|
|
let d = (c==1) ? " pref" : " prefs";
|
|
|
|
if (c > 0) {
|
|
|
|
alert("successfully reset " + c + d + "\n\nfor details check the Browser Console (Ctrl+Shift+J)");
|
|
|
|
} else { alert("nothing to reset"); }
|
|
|
|
|
|
|
|
})();
|