prefs-lines2js.sh - privacy-haters - Tools and configs to help you against privacy haters like firefox.
 (HTM) git clone git://bitreich.org/privacy-haters/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/privacy-haters/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
       prefs-lines2js.sh (262B)
       ---
            1 #!/bin/sh
            2 
            3 while read -r key;
            4 do
            5         read -r value;
            6         case "$value" in
            7         true|false|[0-9\.]*|-[0-9\.]*)
            8                 ;;
            9         *)
           10                 nvalue="$(printf "%s\n" "${value}" | sed 's,",\\",g')"
           11                 value="\"${nvalue}\""
           12                 ;;
           13         esac
           14 
           15         printf "user_pref(\"%s\", %s);\n" "${key}" "${value}"
           16 done
           17