Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutting the fat! Old Arkenfox settings now deprecated/removed #1776

Closed
DjKilla2 opened this issue Nov 27, 2023 · 1 comment
Closed

Cutting the fat! Old Arkenfox settings now deprecated/removed #1776

DjKilla2 opened this issue Nov 27, 2023 · 1 comment

Comments

@DjKilla2
Copy link

I have some old settings that used to be included in Arkenfox. Some are personal and others from an older Arkenfox. Is there a way to check what settings may now be deprecated/removed from Firefox? If a setting no longer exists, I thought now would be a good time to remove it. Some settings I've been using for over 10 years and may no longer be used in Firefox.

@Thorin-Oakenpants
Copy link
Contributor

https://github.com/arkenfox/user.js/blob/master/scratchpad-scripts/arkenfox-cleanup.js

#123 - at the end of the first post has an archived version with older shit

i've just added them all together for you below

click me

(() => {

  if ('undefined' === typeof(Services)) return alert('about:config needs to be the active tab!');

  const aPREFS = [
    'alerts.showFavicons',
    'app.update.enabled',
    'app.update.service.enabled',
    'app.update.silent',
    'app.update.staging.enabled',
    'beacon.enabled',
    'browser.aboutHomeSnippets.updateUrl',
    'browser.bookmarks.showRecentlyBookmarked',
    'browser.cache.disk.capacity',
    'browser.cache.disk.smart_size.enabled',
    'browser.cache.disk.smart_size.first_run',
    'browser.cache.disk_cache_ssl',
    'browser.cache.offline.enable', // 115
    'browser.cache.offline.insecure.enable',
    'browser.cache.offline.storage.enable',
    'browser.casting.enabled',
    'browser.chrome.errorReporter.enabled',
    'browser.chrome.errorReporter.submitUrl',
    'browser.chrome.favicons',
    'browser.contentblocking.enabled',
    'browser.crashReports.unsubmittedCheck.autoSubmit',
    'browser.ctrlTab.previews',
    'browser.download.hide_plugins_without_extensions',
    'browser.fixup.alternate.enabled',
    'browser.fixup.hide_user_pass',
    'browser.formautofill.enabled',
    'browser.formfill.saveHttpsForms',
    'browser.fullscreen.animate',
    'browser.history.allowPopState',
    'browser.history.allowPushState',
    'browser.history.allowReplaceState',
    'browser.laterrun.enabled',
    'browser.library.activity-stream.enabled',
    'browser.migrate.automigrate.enabled',
    'browser.newtab.preload',
    'browser.newtabpage.activity-stream.asrouter.providers.snippets',
    'browser.newtabpage.activity-stream.asrouter.userprefs.cfr',
    'browser.newtabpage.activity-stream.disableSnippets',
    'browser.newtabpage.activity-stream.enabled',
    'browser.newtabpage.activity-stream.feeds.discoverystreamfeed',
    'browser.newtabpage.activity-stream.feeds.snippets',
    'browser.newtabpage.activity-stream.telemetry.ping.endpoint',
    'browser.newtabpage.directory.ping',
    'browser.newtabpage.directory.source',
    'browser.newtabpage.enhanced',
    'browser.newtabpage.introShown',
    'browser.offline-apps.notify',
    'browser.onboarding.enabled',
    'browser.pocket.api',
    'browser.pocket.enabled',
    'browser.pocket.oAuthConsumerKey',
    'browser.pocket.site',
    'browser.polaris.enabled',
    'browser.region.network.url',
    'browser.region.update.enabled',
    'browser.rights.3.shown',
    'browser.safebrowsing.appRepURL',
    'browser.safebrowsing.blockedURIs.enabled',
    'browser.safebrowsing.downloads.remote.block_dangerous',
    'browser.safebrowsing.downloads.remote.block_dangerous_host',
    'browser.safebrowsing.enabled',
    'browser.safebrowsing.gethashURL',
    'browser.safebrowsing.malware.reportURL',
    '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.dataSharing.enabled',
    'browser.safebrowsing.provider.google4.dataSharingURL',
    '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.region',
    'browser.search.reset.enabled',
    'browser.search.reset.whitelist',
    'browser.search.showOneOffButtons',
    'browser.selfsupport.enabled',
    'browser.selfsupport.url',
    'browser.send_pings.require_same_host',
    'browser.sessionhistory.max_entries',
    'browser.sessionhistory.max_total_viewers',
    'browser.sessionstore.max_windows_undo',
    'browser.sessionstore.privacy_level_deferred',
    'browser.slowStartup.maxSamples',
    'browser.slowStartup.notificationDisabled',
    'browser.slowStartup.samples',
    'browser.ssl_override_behavior',
    'browser.startup.blankWindow',
    'browser.stopReloadAnimation.enabled',
    'browser.storageManager.enabled',
    'browser.tabs.animate',
    'browser.tabs.insertRelatedAfterCurrent',
    'browser.tabs.loadDivertedInBackground',
    'browser.tabs.loadInBackground',
    'browser.tabs.remote.allowLinkedWebInFileUriProcess',
    'browser.tabs.selectOwnerOnClose',
    'browser.tabs.warnOnClose',
    'browser.taskbar.previews.enable',
    'browser.trackingprotection.gethashURL',
    'browser.trackingprotection.updateURL',
    'browser.urlbar.autoFill.typed',
    'browser.urlbar.autocomplete.enabled',
    'browser.urlbar.clickSelectsAll',
    'browser.urlbar.dnsResolveSingleWordsAfterSearch',
    'browser.urlbar.doubleClickSelectsAll',
    'browser.urlbar.filter.javascript',
    'browser.urlbar.maxHistoricalSearchSuggestions',
    'browser.urlbar.oneOffSearches',
    'browser.urlbar.suggest.quicksuggest', // 95
    'browser.urlbar.trimURLs',
    'browser.urlbar.unifiedcomplete',
    'browser.urlbar.usepreloadedtopurls.enabled',
    'browser.urlbar.userMadeSearchSuggestionsChoice',
    'browser.usedOnWindows10.introURL',
    'camera.control.autofocus_moving_callback.enabled',
    'camera.control.face_detection.enabled',
    'canvas.capturestream.enabled',
    'datareporting.healthreport.about.reportUrl',
    'datareporting.healthreport.about.reportUrlUnified',
    'datareporting.healthreport.documentServerURI',
    'datareporting.healthreport.service.enabled',
    'datareporting.policy.dataSubmissionEnabled.v2',
    'device.storage.enabled',
    'devtools.chrome.enabled',
    'devtools.webide.adbAddonURL',
    'devtools.webide.autoinstallADBExtension',
    '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_open_during_load',
    'dom.disable_window_flip',
    'dom.disable_window_open_feature.scrollbars',
    'dom.disable_window_status_change',
    'dom.enable_user_timing',
    'dom.event.highrestimestamp.enabled',
    'dom.flyweb.enabled',
    'dom.forms.datetime',
    'dom.idle-observers-api.enabled',
    'dom.imagecapture.enabled',
    'dom.indexedDB.enabled',
    'dom.ipc.plugins.flash.subprocess.crashreporter.enabled',
    'dom.ipc.plugins.reportCrashURL',
    'dom.keyboardevent.code.enabled',
    'dom.keyboardevent.dispatch_during_composition',
    'dom.netinfo.enabled',
    'dom.network.enabled',
    '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.serverURL',
    'dom.push.udp.wakeupEnabled',
    'dom.securecontext.whitelist_onions', // 97
    'dom.storage.enabled',
    'dom.storage.next_gen', // 102
    'dom.storageManager.enabled',
    'dom.storage_access.enabled',
    'dom.targetBlankNoOpener.enabled',
    'dom.telephony.enabled',
    'dom.vibrator.enabled',
    'dom.vr.enabled',
    'dom.vr.oculus.enabled',
    'dom.vr.oculus050.enabled',
    'dom.vr.openvr.enabled',
    'dom.vr.osvr.enabled',
    'dom.w3c_pointer_events.enabled',
    'dom.webnotifications.serviceworker.enabled', // 117
    'dom.workers.enabled',
    'dom.workers.sharedWorkers.enabled',
    'experiments.activeExperiment',
    'experiments.enabled',
    'experiments.manifest.uri',
    'experiments.supported',
    'extensions.blocklist.url',
    'extensions.formautofill.addresses.supported',
    'extensions.formautofill.available',
    'extensions.formautofill.creditCards.available',
    'extensions.formautofill.creditCards.supported',
    'extensions.formautofill.experimental',
    'extensions.formautofill.heuristics.enabled', // 114
    'extensions.getAddons.discovery.api_url',
    'extensions.htmlaboutaddons.discover.enabled',
    'extensions.pocket.api',
    'extensions.pocket.oAuthConsumerKey',
    'extensions.pocket.site',
    'extensions.screenshots.system-disabled',
    'extensions.screenshots.upload-disabled',
    'extensions.shield-recipe-client.api_url',
    'extensions.shield-recipe-client.enabled',
    'extensions.webextensions.keepStorageOnUninstall',
    'extensions.webextensions.keepUuidOnUninstall',
    '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',
    'full-screen-api.approval-required',
    'general.useragent.compatMode.firefox',
    'general.useragent.locale',
    'general.warnOnAboutConfig',
    'geo.security.allowinsecure',
    'geo.wifi.logging.enabled',
    'geo.wifi.uri',
    'geo.wifi.xhr.timeout',
    'gfx.direct2d.disabled',
    'gfx.downloadable_fonts.woff2.enabled',
    'gfx.layerscope.enabled',
    'gfx.offscreencanvas.enabled',
    'intl.charset.fallback.override',
    'intl.locale.matchOS',
    'intl.locale.requested',
    'intl.regional_prefs.use_os_locales',
    'javascript.options.shared_memory',
    'javascript.use_us_english_locale', // 119
    'layers.acceleration.disabled',
    'layout.css.font-loading-api.enabled',
    'layout.css.font-visibility.level', // 94
    'layout.css.font-visibility.private', // 118
    'layout.css.font-visibility.resistFingerprinting', // 116
    'layout.css.font-visibility.standard', // 118
    'layout.css.font-visibility.trackingprotection', // 118
    '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',
    'media.autoplay.allow-muted',
    'media.autoplay.enabled',
    'media.autoplay.enabled.user-gestures-needed',
    'media.block-autoplay-until-in-foreground',
    'media.block-play-until-visible',
    'media.eme.apiVisible',
    'media.eme.chromium-api.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-widevinecdm.autoupdate',
    'media.gmp-widevinecdm.enabled',
    'media.gmp-widevinecdm.visible',
    'media.gmp.trial-create.enabled',
    'media.media-capabilities.enabled',
    'media.mediasource.enabled',
    'media.mediasource.mp4.enabled',
    'media.mediasource.webm.audio.enabled',
    'media.mediasource.webm.enabled',
    'media.mp4.enabled',
    'media.navigator.video.enabled',
    'media.ogg.enabled',
    'media.ogg.flac.enabled',
    'media.opus.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',
    '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',
    'middlemouse.contentLoadURL',
    'middlemouse.paste',
    'network.allow-experiments',
    'network.auth.subresource-img-cross-origin-http-auth-allow',
    'network.cookie.leave-secure-alone',
    'network.cookie.lifetime.days',
    'network.cookie.lifetimePolicy', // 103 [technically removed in 104]
    'network.cookie.same-site.enabled',
    'network.cookie.thirdparty.nonsecureSessionOnly',
    'network.cookie.thirdparty.sessionOnly',
    'network.dns.blockDotOnion',
    'network.dns.skipTRR-when-parental-control-enabled', // 119
    'network.dnsCacheEntries',
    'network.dnsCacheExpiration',
    'network.ftp.enabled',
    'network.http.altsvc.oe',
    'network.http.fast-fallback-to-IPv4',
    'network.http.redirection-limit',
    'network.http.referer.userControlPolicy',
    'network.http.sendSecureXSiteReferrer',
    'network.http.spdy.enabled', // 100
    'network.http.spdy.enabled.deps',
    'network.http.spdy.enabled.http2',
    'network.http.spdy.enabled.http2draft',
    'network.http.spdy.enabled.v3-1',
    'network.http.spdy.websockets',
    'network.jar.block-remote-files',
    'network.jar.open-unsafe-types',
    'network.protocol-handler.external.ms-windows-store',
    'network.proxy.autoconfig_url.include_path',
    'network.stricttransportsecurity.preloadlist',
    'network.websocket.enabled',
    'offline-apps.allow_by_default',
    'offline-apps.quota.warn',
    'pageThumbs.enabled',
    'pdfjs.enableWebGL',
    'permissions.delegation.enabled', // 118
    'pfs.datasource.url',
    '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',
    'plugin.state.java',
    'plugins.click_to_play',
    'plugins.enumerable_names',
    'plugins.update.notifyUser',
    'plugins.update.url',
    'privacy.clearOnShutdown.passwords',
    'privacy.clearsitedata.cache.enabled', // 114
    'privacy.donottrackheader.value',
    'privacy.firstparty.isolate.block_post_message',
    'privacy.firstparty.isolate.restrict_opener_access',
    'privacy.firstparty.isolate.use_site',
    'privacy.partition.always_partition_third_party_non_cookie_storage',
    'privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage',
    'privacy.partition.network_state',
    'privacy.partition.serviceWorkers',
    'privacy.resistFingerprinting.testGranularityMask', // 114
    'privacy.trackingprotection.annotate_channels',
    'privacy.trackingprotection.lower_network_priority',
    'privacy.trackingprotection.pbmode.enabled',
    'privacy.trackingprotection.ui.enabled',
    'privacy.userContext.longPressBehavior',
    'privacy.usercontext.about_newtab_segregation.enabled',
    'privacy.window.name.update.enabled',
    'security.ask_for_password', // 102
    'security.block_script_with_wrong_mime',
    'security.csp.enable', // 99
    'security.csp.enable_violation_events',
    'security.csp.experimentalEnabled',
    'security.data_uri.block_toplevel_data_uri_navigations',
    'security.family_safety.mode', // 117
    'security.fileuri.strict_origin_policy',
    'security.insecure_connection_icon.enabled',
    'security.insecure_connection_icon.pbmode.enabled',
    'security.insecure_connection_text.enabled',
    'security.insecure_connection_text.pbmode.enabled',
    'security.insecure_field_warning.contextual.enabled',
    'security.insecure_password.ui.enabled',
    'security.mixed_content.block_active_content',
    'security.mixed_content.block_object_subrequest',
    'security.mixed_content.send_hsts_priming',
    'security.mixed_content.use_hsts',
    'security.password_lifetime', // 102
    'security.pki.sha1_enforcement_level', // 103
    'security.sri.enable',
    'security.ssl.enable_ocsp_stapling',
    'security.ssl.errorReporting.automatic',
    'security.ssl.errorReporting.enabled',
    'security.ssl.errorReporting.url',
    'security.ssl3.dhe_rsa_aes_128_sha',
    'security.ssl3.dhe_rsa_aes_256_sha',
    'security.ssl3.ecdhe_ecdsa_rc4_128_sha',
    'security.ssl3.ecdhe_rsa_rc4_128_sha',
    'security.ssl3.rsa_des_ede3_sha', // 93
    'security.ssl3.rsa_rc4_128_md5',
    'security.ssl3.rsa_rc4_128_sha',
    'security.tls.insecure_fallback_hosts.use_static_list',
    'security.tls.unrestricted_rc4_fallback',
    'security.tls.version.fallback-limit',
    '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',
    'services.sync.enabled',
    'shield.savant.enabled',
    'signon.autofillForms.http',
    'signon.storeWhenAutocompleteOff',
    'social.directories',
    'social.enabled',
    'social.remote-install.enabled',
    'social.share.activationPanelEnabled',
    'social.shareDirectory',
    'social.toast-notifications.enabled',
    'social.whitelist',
    'toolkit.cosmeticAnimations.enabled',
    'toolkit.telemetry.cachedClientID',
    'toolkit.telemetry.hybridContent.enabled',
    'toolkit.telemetry.unifiedIsOptIn',
    'ui.submenuDelay',
    'urlclassifier.trackingTable',
    'webextensions.storage.sync.enabled',
    'webextensions.storage.sync.serverURL',
    'webgl.disable-extensions',
    'webgl.dxgl.enabled',
    'webgl.min_capability_mode',
    'xpinstall.whitelist.required',

    /* IMPORTANT: last active pref must not have a trailing comma */ 
    /* 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';

})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants