diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2018-09-13 20:47:06 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2018-09-13 21:02:13 -0400 |
commit | a25c630a21d78be6515648d8d65cf13fb633c3b5 (patch) | |
tree | b5abf67a57092a0b57f214b5d673357bf862b9a5 /makeicecat | |
parent | f70c9f0704ca1dc285b319ee4e77f2dd6395623a (diff) |
Preserve Firefox as UserAgent
Diffstat (limited to 'makeicecat')
-rw-r--r-- | makeicecat | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -405,6 +405,11 @@ sed 's/mozilla-bin/icecat-bin/' -i build/unix/run-mozilla.sh find -type f | grep run-mozilla | xargs prename s/mozilla/icecat/ +# do not alter useragent/platform/oscpu/etc with fingerprinting countermeasure, it makes things worse +sed '/ShouldResistFingerprinting/,/}/s/^/\/\//' -i ./netwerk/protocol/http/nsHttpHandler.cpp +sed '/If fingerprinting resistance is on/,/}/s/^/\/\//' -i ./dom/base/Navigator.cpp + +# Leave user agent as Firefox sed "/MOZILLA_UAVERSION/ s:IceCat/:Firefox/:" -i netwerk/protocol/http/nsHttpHandler.cpp find . -name region.properties |xargs -i /bin/sed 's_https://www.mibbit.*__' -i {} @@ -421,9 +426,9 @@ cat << EOF >> browser/app/profile/icecat.js // Set useragent to Firefox compatible //pref("general.useragent.compatMode.firefox",true); // Spoof the useragent to a generic one -pref("general.useragent.compatMode.firefox",true); +//pref("general.useragent.compatMode.icecat",true); // Spoof the useragent to a generic one -pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:${FFMAJOR}.0) Gecko/20100101 Firefox/${FFMAJOR}.0"); +//pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:${FFMAJOR}.0) Gecko/20100101 Firefox/${FFMAJOR}.0"); pref("general.appname.override", "Netscape"); pref("general.appversion.override", "${FFMAJOR}.0"); pref("general.buildID.override", "Gecko/20100101"); @@ -433,6 +438,7 @@ EOF cat << EOF >> browser/confvars.sh # IceCat settings +MOZ_APP_UA_NAME=IceCat MOZ_APP_VENDOR=GNU MOZ_APP_VERSION=$FFVERSION MOZ_APP_PROFILE=mozilla/icecat |