dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit e19bafe2356e8a94a7ae4ed1fb292db764785f95
parent d571a377b96d4ebaa8000030c004ede1f8a5268e
Author: Duncaen <mail@duncano.de>
Date:   Sat, 17 Jun 2017 20:48:30 +0200

firefox: add

Diffstat:
install.sh | 12++++++++++++
my-umatrix-rules.txt | 47+++++++++++++++++++++++++++++++++++++++++++++++
user.js | 128+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 187 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh @@ -90,6 +90,17 @@ _gtk() { _ln_home "gtkrc-2.0" ".gtkrc-2.0" _ln_home "gtk-3.0" ".config/gtk-3.0" } +_firefox() { + [ -n "$(command -v firefox 2>/dev/null)" ] || return + printf "INSTALL: firefox user.js for profile: " + for p in ~/.mozilla/firefox/*/; do + p="${p%/*}"; p="${p##*/}" + case "$p" in *backup*|*crashrecovery*|"") continue ;; esac + printf " %s" "'${p}'" + _ln_home "user.js" ".mozilla/firefox/$p/user.js" + done + printf "\n" +} : ${PWD:=$(pwd)} : ${HOME:=~} @@ -107,3 +118,4 @@ _vim _void _ssh _gtk +_firefox diff --git a/my-umatrix-rules.txt b/my-umatrix-rules.txt @@ -0,0 +1,47 @@ +matrix-off: about-scheme true +matrix-off: behind-the-scene true +matrix-off: chrome-extension-scheme true +matrix-off: chrome-scheme true +matrix-off: localhost true +matrix-off: opera-scheme true +referrer-spoof: * true +referrer-spoof: strato.de false +referrer-spoof: youtube.com false +ua-spoof: * true +ua-spoof: strato.de false +ua-spoof: youtube.com false +* * * block +* * css allow +* * frame block +* * image allow +* 1st-party * allow +* 1st-party frame allow +file-scheme mobile.twitter.com frame allow +github.com raw.githubusercontent.com * allow +github.com render.githubusercontent.com * allow +github.com render.githubusercontent.com frame allow +imgur.com cdnjs.cloudflare.com script allow +instagram.com instagramstatic-a.akamaihd.net script allow +oddshot.tv oddshot.akamaized.net script allow +prnt.sc prntscr.com frame allow +prnt.sc prntscr.com script allow +reddit.com www.redditstatic.com script allow +soundcloud.com sndcdn.com * allow +travis-ci.org s3.amazonaws.com xhr allow +travis-ci.org ws.pusherapp.com other allow +twitch.tv akamaized.net * allow +twitch.tv ttvnw.net * allow +twitter.com abs.twimg.com script allow +twitter.com ma-0.twimg.com script allow +twitter.com ton.twimg.com script allow +twitter.com video.twimg.com other allow +twitter.com video.twimg.com xhr allow +utrace.de maps.googleapis.com script allow +vimeo.com f.vimeocdn.com script allow +vimeo.com fpdl.vimeocdn.com other allow +vimeo.com vimeocdn.com * allow +youtube.com apis.google.com script allow +youtube.com googlevideo.com * allow +youtube.com s.ytimg.com script allow +youtube.com www.google.com script allow +youtube.com ytimg.com * allow diff --git a/user.js b/user.js @@ -0,0 +1,128 @@ +// UI/UX +user_pref('middlemouse.contentLoadURL', false); + +user_pref('network.IDN_show_punycode', true); + +user_pref('browser.fullscreen.animate', false); +user_pref('browser.tabs.animate', false); +user_pref('browser.download.animateNotifications', false); + +user_pref('browser.urlbar.trimURLs', false); +user_pref('browser.urlbar.unifiedcomplete', false); +user_pref('browser.urlbar.daysBeforeHidingSuggestionsPrompt', 0); +user_pref('browser.search.suggest.enabled', false); + +user_pref('browser.download.useDownloadDir', ''); + +user_pref('general.warnOnAboutConfig', false); + +user_pref('browser.uiCustomization.state', '{"placements":{"PanelUI-contents":["edit-controls","zoom-controls","new-window-button","privatebrowsing-button","save-page-button","history-panelmenu","fullscreen-button","find-button","preferences-button","add-ons-button","developer-button","sync-button","openwith-widget","downloads-button"],"addon-bar":["addonbar-closebutton","status-bar"],"PersonalToolbar":["ctraddon_bookmarks-menu-toolbar-button"],"nav-bar":["ctraddon_appbutton","ctraddon_back-forward-button","urlbar-container","personal-bookmarks","noscript-tbb","ctraddon_panelui-button","ublock0-button","umatrix-button"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button","ctraddon_tabs-closebutton"],"toolbar-menubar":["menubar-items"],"ctraddon_addon-bar":["ctraddon_addonbar-close","customizableui-special-spring1","ctraddon_statusbar"],"ctraddon_extra-bar":["customizableui-special-spring2"]},"seen":["pocket-button","developer-button","cleanlinks-toolbar-button","ublock0-button","openwith-widget","openwith-widewidget","umatrix-button"],"dirtyAreaCache":["PersonalToolbar","nav-bar","TabsToolbar","toolbar-menubar","PanelUI-contents","addon-bar","ctraddon_addon-bar","ctraddon_extra-bar"],"currentVersion":6,"newElementCount":6}'); + +user_pref('dom.disable_beforeunload', true); +user_pref('dom.disable_window_open_feature.location', true); +user_pref('dom.disable_window_open_feature.resizable', true) +user_pref('dom.disable_window_open_feature.status', true); +user_pref('dom.event.contextmenu.enabled', false); + +user_pref('browser.newtabpage.directory.ping', ''); +user_pref('browser.newtabpage.directory.source', ''); +user_pref('browser.newtabpage.enhanced', false); +user_pref('browser.newtabpage.introShown', true); + +user_pref('browser.bookmarks.showRecentlyBookmarked', false); + +user_pref('accessibility.typeaheadfind', true); +user_pref('accessibility.typeaheadfind.flashBar', 0); + +user_pref('accessibility.browsewithcaret', false); +user_pref('accessibility.warn_on_browsewithcaret', false); + +// Privacy +user_pref('extensions.getAddons.cache.enabled', false); + +user_pref('dom.webnotifications.enabled', false); +user_pref('dom.webnotifications.serviceworker.enabled', false); + +user_pref('browser.contentHandlers.types.0.title', ''); +user_pref('browser.contentHandlers.types.0.type', ''); +user_pref('browser.contentHandlers.types.0.uri', ''); + +user_pref('gecko.handlerService.schemes.irc.0.name', ''); +user_pref('gecko.handlerService.schemes.irc.0.uriTemplate', ''); +user_pref('gecko.handlerService.schemes.ircs.0.name', ''); +user_pref('gecko.handlerService.schemes.ircs.0.uriTemplate', ''); +user_pref('gecko.handlerService.schemes.mailto.0.name', ''); +user_pref('gecko.handlerService.schemes.mailto.0.uriTemplate', ''); +user_pref('gecko.handlerService.schemes.mailto.1.name', ''); +user_pref('gecko.handlerService.schemes.mailto.1.uriTemplate', ''); +user_pref('gecko.handlerService.schemes.webcal.0.name', ''); +user_pref('gecko.handlerService.schemes.webcal.0.uriTemplate', ''); + +user_pref('browser.aboutHomeSnippets.updateUrl', ''); + +user_pref('privacy.trackingprotection.enabled', true); +user_pref('privacy.donottrackheader.enabled', true); + +user_pref('browser.safebrowsing.enabled', false); +user_pref('browser.safebrowsing.downloads.enabled', false); +user_pref('browser.safebrowsing.malware.enabled', false); + +user_pref('media.navigator.enabled', false); +user_pref('media.getusermedia.screensharing.enabled', false); +user_pref('media.getusermedia.screensharing.allowed_domains', ''); + +user_pref('media.peerconnection.enabled', false); +user_pref('media.peerconnection.ice.default_address_only', true); +user_pref('media.peerconnection.ice.no_host', true); +user_pref('media.peerconnection.use_document_iceservers', false); + +user_pref('media.eme.enabled', false); + +user_pref('browser.pocket.enabled', false); + +user_pref('social.directories', ''); +user_pref('social.whitelist', ''); +user_pref('social.manifest.facebook', ''); +user_pref('social.remote-install.enabled', false); +user_pref('social.toast-notifications.enabled', false); + +user_pref('datareporting.healthreport.service.enabled', false); +user_pref('datareporting.healthreport.uploadEnabled', false); + +user_pref('toolkit.telemetry.enabled', false); +user_pref('toolkit.telemetry.reportingpolicy.firstRun', false); + +user_pref('network.http.speculative-parallel-limit', 0); +user_pref('network.dns.disablePrefetch', true); +user_pref('network.prefetch-next', false); + +user_pref('browser.send_pings', false); + +// crupto +user_pref('security.ssl.require_safe_negotiation', true); +user_pref('security.ssl.treat_unsafe_negotiation_as_broken', true); +user_pref('security.ssl3.rsa_des_ede3_sha', false); + +// Useless features +user_pref('dom.event.clipboardevents.enabled', false); + +user_pref('dom.serviceWorkers.enabled', false); +user_pref('dom.storage.enabled', false); +user_pref('dom.battery.enabled', false); +user_pref('dom.indexedDB.enabled', false); +user_pref('dom.enable_user_timing', false); +user_pref('dom.netinfo.enabled', false); +user_pref('dom.netinfo.enabled', false); + +user_pref('device.sensors.enabled', false); +user_pref('camera.control.face_detection.enabled', false); +user_pref('camera.control.autofocus_moving_callback.enabled', false); + +user_pref('geo.enabled', false); +user_pref('geo.wifi.logging.enabled', false); +user_pref('geo.wifi.uri', ''); + +user_pref('javascript.options.asmjs', false); +user_pref('javascript.options.wasm', false); + +user_pref('webgl.disabled', true);