-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e93721
commit b963899
Showing
1 changed file
with
354 additions
and
0 deletions.
There are no files selected for viewing
354 changes: 354 additions & 0 deletions
354
Stanford_AI.ME/Assignments_and_projects/Secure_browser_customization/user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,354 @@ | ||
// This hardening configuration has been integrated to work with my Secure_Tor_Ip_Changer to provide a private,secure and less tracking browsing experience | ||
// ------------------------------------------------------------------ | ||
// | ||
// Copyright (C) 2024 privateboss01 | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of MIT License | ||
// | ||
// ------------------------------------------------------------------ | ||
|
||
user_pref("browser.aboutConfig.showWarning", false); | ||
user_pref("browser.shell.checkDefaultBrowser", false); | ||
user_pref("browser.startup.page", 0); | ||
user_pref("browser.startup.homepage", "about:home"); | ||
user_pref("browser.newtabpage.enabled", false); | ||
user_pref("browser.newtab.preload", false); | ||
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false); | ||
user_pref("browser.newtabpage.activity-stream.telemetry", false); | ||
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false); | ||
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); | ||
user_pref("browser.newtabpage.activity-stream.section.highlights.includePocket", false); | ||
user_pref("browser.newtabpage.activity-stream.feeds.discoverystreamfeed", false); | ||
user_pref("browser.newtabpage.activity-stream.showSponsored", false); | ||
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); | ||
user_pref("browser.newtabpage.activity-stream.default.sites", ""); | ||
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); | ||
user_pref("geo.provider.use_gpsd", false); | ||
user_pref("geo.provider.use_geoclue", false); | ||
user_pref("browser.region.network.url", ""); | ||
user_pref("browser.region.update.enabled", false); | ||
user_pref("intl.accept_languages", "en-US, en"); | ||
user_pref("javascript.use_us_english_locale", true); | ||
user_pref("app.update.auto", false); | ||
user_pref("extensions.getAddons.showPane", false); | ||
user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); | ||
user_pref("browser.discovery.enabled", false); | ||
user_pref("datareporting.policy.dataSubmissionEnabled", false); | ||
user_pref("datareporting.healthreport.uploadEnabled", false); | ||
user_pref("toolkit.telemetry.enabled", false); | ||
user_pref("toolkit.telemetry.unified", false); | ||
user_pref("toolkit.telemetry.server", "data:,"); | ||
user_pref("toolkit.telemetry.archive.enabled", false); | ||
user_pref("toolkit.telemetry.newProfilePing.enabled", false); | ||
user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); | ||
user_pref("toolkit.telemetry.updatePing.enabled", false); | ||
user_pref("toolkit.telemetry.bhrPing.enabled", false); | ||
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); | ||
user_pref("toolkit.telemetry.coverage.opt-out", true); | ||
user_pref("toolkit.coverage.opt-out", true); | ||
user_pref("toolkit.coverage.endpoint.base.", ""); | ||
user_pref("browser.ping-centre.telemetry", false); | ||
user_pref("beacon.enabled", false); | ||
user_pref("app.shield.optoutstudies.enabled", false); | ||
user_pref("app.normandy.enabled", false); | ||
user_pref("app.normandy.api_url", ""); | ||
user_pref("breakpad.reportURL", ""); | ||
user_pref("browser.tabs.crashReporting.sendReport", false); | ||
user_pref("captivedetect.canonicalURL", ""); | ||
user_pref("network.captive-portal-service.enabled", false); | ||
user_pref("network.connectivity-service.enabled", false); | ||
user_pref("browser.safebrowsing.malware.enabled", false); | ||
user_pref("browser.safebrowsing.phishing.enabled", false); | ||
user_pref("browser.safebrowsing.blockedURIs.enabled", false); | ||
user_pref("browser.safebrowsing.provider.google4.gethashURL", ""); | ||
user_pref("browser.safebrowsing.provider.google4.updateURL", ""); | ||
user_pref("browser.safebrowsing.provider.google.gethashURL", ""); | ||
user_pref("browser.safebrowsing.provider.google.updateURL", ""); | ||
user_pref("browser.safebrowsing.provider.google4.dataSharingURL", ""); | ||
user_pref("browser.safebrowsing.downloads.enabled", false); | ||
user_pref("browser.safebrowsing.downloads.remote.enabled", false); | ||
user_pref("browser.safebrowsing.downloads.remote.url", ""); | ||
user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); | ||
user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false); | ||
user_pref("browser.safebrowsing.allowOverride", false); | ||
user_pref("network.prefetch-next", false); | ||
user_pref("network.dns.disablePrefetch", true); | ||
user_pref("network.predictor.enabled", false); | ||
user_pref("network.http.speculative-parallel-limit", 0); | ||
user_pref("browser.places.speculativeConnect.enabled", false); | ||
user_pref("network.dns.disableIPv6", true); | ||
user_pref("network.gio.supported-protocols", ""); | ||
user_pref("network.file.disable_unc_paths", true); | ||
user_pref("permissions.manager.defaultsUrl", ""); | ||
user_pref("network.IDN_show_punycode", true); | ||
user_pref("browser.search.suggest.enabled", false); | ||
user_pref("browser.urlbar.suggest.searches", false); | ||
user_pref("browser.fixup.alternate.enabled", false); | ||
user_pref("browser.urlbar.trimURLs", false); | ||
user_pref("browser.urlbar.speculativeConnect.enabled", false); | ||
user_pref("browser.formfill.enable", false); | ||
user_pref("extensions.formautofill.addresses.enabled", false); | ||
user_pref("extensions.formautofill.available", "off"); | ||
user_pref("extensions.formautofill.creditCards.available", false); | ||
user_pref("extensions.formautofill.creditCards.enabled", false); | ||
user_pref("extensions.formautofill.heuristics.enabled", false); | ||
user_pref("browser.urlbar.quicksuggest.scenario", "history"); | ||
user_pref("browser.urlbar.quicksuggest.enabled", false); | ||
user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false); | ||
user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false); | ||
user_pref("signon.rememberSignons", false); | ||
user_pref("signon.autofillForms", false); | ||
user_pref("signon.formlessCapture.enabled", false); | ||
user_pref("network.auth.subresource-http-auth-allow", 1); | ||
user_pref("browser.cache.disk.enable", false); | ||
user_pref("browser.sessionstore.privacy_level", 2); | ||
user_pref("browser.sessionstore.resume_from_crash", false); | ||
user_pref("browser.pagethumbnails.capturing_disabled", true); | ||
user_pref("browser.shell.shortcutFavicons", false); | ||
user_pref("browser.helperApps.deleteTempFileOnExit", true); | ||
user_pref("dom.security.https_only_mode", true); | ||
user_pref("dom.security.https_only_mode_send_http_background_request", false); | ||
user_pref("browser.xul.error_pages.expert_bad_cert", true); | ||
user_pref("security.tls.enable_0rtt_data", false); | ||
user_pref("security.OCSP.require", true); | ||
user_pref("security.pki.sha1_enforcement_level", 1); | ||
user_pref("security.cert_pinning.enforcement_level", 2); | ||
user_pref("security.remote_settings.crlite_filters.enabled", true); | ||
user_pref("security.pki.crlite_mode", 2); | ||
user_pref("network.http.referer.XOriginPolicy", 2); | ||
user_pref("network.http.referer.XOriginTrimmingPolicy", 2); | ||
user_pref("media.peerconnection.enabled", false); | ||
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true); | ||
user_pref("media.peerconnection.ice.default_address_only", true); | ||
user_pref("media.peerconnection.ice.no_host", true); | ||
user_pref("webgl.disabled", true); | ||
user_pref("media.autoplay.default", 5); | ||
user_pref("media.eme.enabled", false); | ||
user_pref("browser.download.useDownloadDir", false); | ||
user_pref("browser.download.manager.addToRecentDocs", false); | ||
user_pref("browser.contentblocking.category", "strict"); | ||
user_pref("privacy.partition.serviceWorkers", true); | ||
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); | ||
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); | ||
user_pref("dom.disable_open_during_load", true); | ||
user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown"); | ||
user_pref("extensions.pocket.enabled", false); | ||
user_pref("extensions.screenshots.disabled", true); | ||
user_pref("pdfjs.enableScripting", false); | ||
user_pref("privacy.userContext.enabled", true); | ||
user_pref("privacy.userContext.ui.enabled", true); | ||
user_pref("extensions.enabledScopes", 5); | ||
user_pref("extensions.webextensions.restrictedDomains", ""); | ||
user_pref("extensions.postDownloadThirdPartyPrompt", false); | ||
user_pref("network.cookie.lifetimePolicy", 2); | ||
user_pref("privacy.sanitize.sanitizeOnShutdown", true); | ||
user_pref("privacy.clearOnShutdown.cache", true); | ||
user_pref("privacy.clearOnShutdown.cookies", true); | ||
user_pref("privacy.clearOnShutdown.downloads", true); | ||
user_pref("privacy.clearOnShutdown.formdata", true); | ||
user_pref("privacy.clearOnShutdown.history", true); | ||
user_pref("privacy.clearOnShutdown.offlineApps", true); | ||
user_pref("privacy.clearOnShutdown.sessions", true); | ||
user_pref("privacy.clearOnShutdown.sitesettings", true); | ||
user_pref("privacy.sanitize.timeSpan", 0); | ||
user_pref("privacy.resistFingerprinting", true); | ||
user_pref("privacy.window.maxInnerWidth", 1600); | ||
user_pref("privacy.window.maxInnerHeight", 900); | ||
user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); | ||
user_pref("browser.startup.blankWindow", false); | ||
user_pref("browser.display.use_system_colors", false); | ||
user_pref("app.normandy.api_url", ""); | ||
user_pref("app.normandy.enabled", false); | ||
user_pref("app.shield.optoutstudies.enabled", false); | ||
user_pref("app.update.auto", false); | ||
user_pref("beacon.enabled", false); | ||
user_pref("breakpad.reportURL", ""); | ||
user_pref("browser.aboutConfig.showWarning", false); | ||
user_pref("browser.cache.offline.enable", false); | ||
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit", false); | ||
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); | ||
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); | ||
user_pref("browser.disableResetPrompt", true); | ||
user_pref("browser.fixup.alternate.enabled", false); | ||
user_pref("browser.newtabpage.enabled", false); | ||
user_pref("browser.newtabpage.enhanced", false); | ||
user_pref("browser.newtabpage.introShown", true); | ||
user_pref("browser.safebrowsing.appRepURL", ""); | ||
user_pref("browser.safebrowsing.enabled", false); | ||
user_pref("browser.safebrowsing.malware.enabled", false); | ||
user_pref("browser.safebrowsing.phishing.enabled", false); | ||
user_pref("browser.search.suggest.enabled", false); | ||
user_pref("browser.selfsupport.url", ""); | ||
user_pref("browser.send_pings", false); | ||
user_pref("browser.shell.checkDefaultBrowser", false); | ||
user_pref("browser.startup.homepage_override.mstone", "ignore"); | ||
user_pref("browser.tabs.crashReporting.sendReport", false); | ||
user_pref("browser.urlbar.groupLabels.enabled", false); | ||
user_pref("browser.urlbar.quicksuggest.enabled", false); | ||
user_pref("browser.urlbar.speculativeConnect.enabled", false); | ||
user_pref("browser.urlbar.trimURLs", false); | ||
user_pref("datareporting.healthreport.service.enabled", false); | ||
user_pref("datareporting.healthreport.uploadEnabled", false); | ||
user_pref("datareporting.policy.dataSubmissionEnabled", false); | ||
user_pref("device.sensors.ambientLight.enabled", false); | ||
user_pref("device.sensors.enabled", false); | ||
user_pref("device.sensors.motion.enabled", false); | ||
user_pref("device.sensors.orientation.enabled", false); | ||
user_pref("device.sensors.proximity.enabled", false); | ||
user_pref("dom.battery.enabled", false); | ||
user_pref("dom.event.clipboardevents.enabled", false); | ||
user_pref("dom.security.https_only_mode", true); | ||
user_pref("dom.security.https_only_mode_ever_enabled", true); | ||
user_pref("dom.webaudio.enabled", false); | ||
user_pref("experiments.activeExperiment", false); | ||
user_pref("experiments.enabled", false); | ||
user_pref("experiments.manifest.uri", ""); | ||
user_pref("experiments.supported", false); | ||
user_pref("extensions.autoDisableScopes", 14); | ||
user_pref("extensions.blocklist.enabled", false); | ||
user_pref("extensions.getAddons.cache.enabled", false); | ||
user_pref("extensions.getAddons.showPane", false); | ||
user_pref("extensions.greasemonkey.stats.optedin", false); | ||
user_pref("extensions.greasemonkey.stats.url", ""); | ||
user_pref("extensions.pocket.enabled", false); | ||
user_pref("extensions.shield-recipe-client.api_url", ""); | ||
user_pref("extensions.shield-recipe-client.enabled", false); | ||
user_pref("extensions.webservice.discoverURL", ""); | ||
user_pref("general.useragent.override", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.3"); | ||
user_pref("keyword.enabled", false); | ||
user_pref("media.autoplay.default", 1); | ||
user_pref("media.autoplay.enabled", false); | ||
user_pref("media.eme.enabled", false); | ||
user_pref("media.gmp-widevinecdm.enabled", false); | ||
user_pref("media.navigator.enabled", false); | ||
user_pref("media.peerconnection.enabled", false); | ||
user_pref("media.video_stats.enabled", false); | ||
user_pref("network.trr.mode", 3); | ||
user_pref("network.trr.uri", "https://firefox.dns.nextdns.io/"); | ||
user_pref("network.IDN_show_punycode", true); | ||
user_pref("network.allow-experiments", false); | ||
user_pref("network.captive-portal-service.enabled", false); | ||
user_pref("network.cookie.cookieBehavior", 1); | ||
user_pref("network.dns.disablePrefetch", true); | ||
user_pref("network.dns.disablePrefetchFromHTTPS", true); | ||
user_pref("network.http.referer.spoofSource", true); | ||
user_pref("network.http.speculative-parallel-limit", 0); | ||
user_pref("network.predictor.enable-prefetch", false); | ||
user_pref("network.predictor.enabled", false); | ||
user_pref("network.prefetch-next", false); | ||
user_pref("privacy.donottrackheader.enabled", true); | ||
user_pref("privacy.donottrackheader.value", 1); | ||
user_pref("privacy.firstparty.isolate", true); | ||
user_pref("privacy.query_stripping", true); | ||
user_pref("privacy.resistFingerprinting", true); | ||
user_pref("privacy.trackingprotection.cryptomining.enabled", true); | ||
user_pref("privacy.trackingprotection.enabled", true); | ||
user_pref("privacy.trackingprotection.fingerprinting.enabled", true); | ||
user_pref("privacy.trackingprotection.pbmode.enabled", true); | ||
user_pref("privacy.usercontext.about_newtab_segregation.enabled", true); | ||
user_pref("security.ssl.disable_session_identifiers", true); | ||
user_pref("services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsoredTopSite", false); | ||
user_pref("signon.autofillForms", false); | ||
user_pref("toolkit.telemetry.archive.enabled", false); | ||
user_pref("toolkit.telemetry.bhrPing.enabled", false); | ||
user_pref("toolkit.telemetry.cachedClientID", ""); | ||
user_pref("toolkit.telemetry.enabled", false); | ||
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); | ||
user_pref("toolkit.telemetry.hybridContent.enabled", false); | ||
user_pref("toolkit.telemetry.newProfilePing.enabled", false); | ||
user_pref("toolkit.telemetry.prompted", 2); | ||
user_pref("toolkit.telemetry.rejected", true); | ||
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false); | ||
user_pref("toolkit.telemetry.server", ""); | ||
user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); | ||
user_pref("toolkit.telemetry.unified", false); | ||
user_pref("toolkit.telemetry.unifiedIsOptIn", false); | ||
user_pref("toolkit.telemetry.updatePing.enabled", false); | ||
user_pref("webgl.disabled", true); | ||
user_pref("webgl.renderer-string-override", ""); | ||
user_pref("webgl.vendor-string-override", ""); | ||
user_pref("browser.search.region", "US"); | ||
user_pref("browser.search.countryCode", "US"); | ||
user_pref("browser.search.geoip.url", ""); | ||
user_pref("doh-rollout.home-region", "US"); | ||
user_pref("browser.urlbar.placeholderName", "DuckDuckGo"); | ||
user_pref("browser.urlbar.placeholderName.private", "DuckDuckGo"); | ||
user_pref("browser.contentblocking.category", "strict"); | ||
user_pref("network.proxy.socks", 127.0.0.1); | ||
user_pref("network.proxy.socks_port", 9050); | ||
user_pref("network.proxy.socks_version", 5); | ||
user_pref("network.proxy.type", 1); | ||
user_pref("network.proxy.socks_remote_dns", true); | ||
user_pref("network.protocol-handler.warn-external-default", true); | ||
user_pref("network.protocol-handler.external.http", false); | ||
user_pref("network.protocol-handler.external.https", false); | ||
user_pref("network.protocol-handler.external.javascript", false); | ||
user_pref("network.protocol-handler.external.moz-extension", false); | ||
user_pref("network.protocol-handler.external.ftp", false); | ||
user_pref("network.protocol-handler.external.file", false); | ||
user_pref("network.protocol-handler.external.about", false); | ||
user_pref("network.protocol-handler.external.chrome", false); | ||
user_pref("network.protocol-handler.external.blob", false); | ||
user_pref("network.protocol-handler.external.data", false); | ||
user_pref("network.protocol-handler.expose-all", false); | ||
user_pref("network.protocol-handler.expose.http", true); | ||
user_pref("network.protocol-handler.expose.https", true); | ||
user_pref("network.protocol-handler.expose.javascript", true); | ||
user_pref("network.protocol-handler.expose.moz-extension", true); | ||
user_pref("network.protocol-handler.expose.ftp", true); | ||
user_pref("network.protocol-handler.expose.file", true); | ||
user_pref("network.protocol-handler.expose.about", true); | ||
user_pref("network.protocol-handler.expose.chrome", true); | ||
user_pref("network.protocol-handler.expose.blob", true); | ||
user_pref("network.protocol-handler.expose.data", true); | ||
user_pref("security.ssl3.rsa_null_sha", false); | ||
user_pref("security.ssl3.rsa_null_md5", false); | ||
user_pref("security.ssl3.ecdhe_rsa_null_sha", false); | ||
user_pref("security.ssl3.ecdhe_ecdsa_null_sha", false); | ||
user_pref("security.ssl3.ecdh_rsa_null_sha", false); | ||
user_pref("security.ssl3.ecdh_ecdsa_null_sha", false); | ||
user_pref("security.ssl3.rsa_seed_sha", false); | ||
user_pref("security.ssl3.rsa_rc4_40_md5", false); | ||
user_pref("security.ssl3.rsa_rc2_40_md5", false); | ||
user_pref("security.ssl3.rsa_1024_rc4_56_sha", false); | ||
user_pref("security.ssl3.rsa_camellia_128_sha", false); | ||
user_pref("security.ssl3.ecdhe_rsa_aes_128_sha", false); | ||
user_pref("security.ssl3.ecdhe_ecdsa_aes_128_sha", false); | ||
user_pref("security.ssl3.ecdh_rsa_aes_128_sha", false); | ||
user_pref("security.ssl3.ecdh_ecdsa_aes_128_sha", false); | ||
user_pref("security.ssl3.dhe_rsa_camellia_128_sha", false); | ||
user_pref("security.ssl3.dhe_rsa_aes_128_sha", false); | ||
user_pref("security.ssl3.ecdh_ecdsa_rc4_128_sha", false); | ||
user_pref("security.ssl3.ecdh_rsa_rc4_128_sha", false); | ||
user_pref("security.ssl3.ecdhe_ecdsa_rc4_128_sha", false); | ||
user_pref("security.ssl3.ecdhe_rsa_rc4_128_sha", false); | ||
user_pref("security.ssl3.rsa_rc4_128_md5", false); | ||
user_pref("security.ssl3.rsa_rc4_128_sha", false); | ||
user_pref("security.tls.unrestricted_rc4_fallback", false); | ||
user_pref("security.ssl3.dhe_dss_des_ede3_sha", false); | ||
user_pref("security.ssl3.dhe_rsa_des_ede3_sha", false); | ||
user_pref("security.ssl3.ecdh_ecdsa_des_ede3_sha", false); | ||
user_pref("security.ssl3.ecdh_rsa_des_ede3_sha", false); | ||
user_pref("security.ssl3.ecdhe_ecdsa_des_ede3_sha", false); | ||
user_pref("security.ssl3.ecdhe_rsa_des_ede3_sha", false); | ||
user_pref("security.ssl3.rsa_des_ede3_sha", false); | ||
user_pref("security.ssl3.rsa_fips_des_ede3_sha", false); | ||
user_pref("security.ssl3.ecdh_rsa_aes_256_sha", false); | ||
user_pref("security.ssl3.ecdh_ecdsa_aes_256_sha", false); | ||
user_pref("security.ssl3.rsa_camellia_256_sha", false); | ||
user_pref("security.ssl3.ecdhe_ecdsa_aes_128_gcm_sha256", true); | ||
user_pref("security.ssl3.ecdhe_rsa_aes_128_gcm_sha256", true); | ||
user_pref("security.ssl3.ecdhe_ecdsa_chacha20_poly1305_sha256", true); | ||
user_pref("security.ssl3.ecdhe_rsa_chacha20_poly1305_sha256", true); | ||
user_pref("security.ssl3.dhe_rsa_camellia_256_sha", false); | ||
user_pref("security.ssl3.dhe_rsa_aes_256_sha", false); | ||
user_pref("security.ssl3.dhe_dss_aes_128_sha", false); | ||
user_pref("security.ssl3.dhe_dss_aes_256_sha", false); | ||
user_pref("security.ssl3.dhe_dss_camellia_128_sha", false); | ||
user_pref("security.ssl3.dhe_dss_camellia_256_sha", false); | ||
user_pref("security.ssl3.rsa_aes_256_sha", false); | ||
user_pref("security.ssl3.rsa_aes_128_sha", false); | ||
user_pref("security.ssl3.ecdhe_rsa_aes_256_sha", false); | ||
user_pref("security.ssl3.ecdhe_ecdsa_aes_256_sha", false); | ||
user_pref("security.tls.enable_kyber", true); //post quantum key exchange |