Introduction
Introduction Statistics Contact Development Disclaimer Help
prefs-lines2js.sh - privacy-haters - Tools and configs to help you against priv…
git clone git://bitreich.org/privacy-haters/ git://enlrupgkhuxnvlhsf6lc3fziv5h2…
Log
Files
Refs
Tags
README
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.