privacy-haters

Tools and configs to help you against privacy haters.
git clone git://r-36.net/privacy-haters
Log | Files | Refs | LICENSE

commit a7c2c60f79c4920def6ecaa06f2e22ed3b3f4a30
parent 0cf03a2daeff9120cf63198c3c5775b0388a93bf
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 30 May 2020 18:48:12 +0200

Add a tutorial how to export firefox preferences.

Diffstat:
firefox/EXPORT-PREFS.md | 37+++++++++++++++++++++++++++++++++++++
firefox/prefs-lines2js.sh | 17+++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/firefox/EXPORT-PREFS.md b/firefox/EXPORT-PREFS.md @@ -0,0 +1,37 @@ +# How to export all preferences in Firefox. + +Since Mozilla hates you and all external developers, it is not easy to +find all preferences for future explorations. + +Prequisites: + + $ git clone git://bitreich.org/xml2tsv + $ cd xml2tsv + $ make && make install; + +1. Go to »about:config«. +2. Go to devtools there and export the whole inner HTML of the pferences + tables. +3. Do xclip -o > all-prefs-raw.html. +4. cat all-prefs-raw.html | sed 's,<wbr>,,g' > all-prefs.html +5. + + cat prefs-all.html \ + | xml2tsv 2>/dev/null \ + | '/tr/th\|/tr/td/span/span' + | cut -f 3- + +5. + + cat prefs-all-lines.txt \ + sed 's,https:.*,about:config,g' \ + sed 'sed 's,http:.*,about:config,g' \ + sed 's,wss:.*,about:config,g' \ + ./prefs-lines2js.sh > all-prefs-about-config.js + +Now edit all-prefs-about-config.js to your needs and copy over to +user.js. + +See how simple it is to customize Firefox! They really like users! + + diff --git a/firefox/prefs-lines2js.sh b/firefox/prefs-lines2js.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +while read -r key; +do + read -r value; + case "$value" in + true|false|[0-9\.]*|-[0-9\.]*) + ;; + *) + nvalue="$(printf "%s\n" "${value}" | sed 's,",\\",g')" + value="\"${nvalue}\"" + ;; + esac + + printf "user_pref(\"%s\", %s);\n" "${key}" "${value}" +done +