Commit 333e74ae authored by anonym's avatar anonym
Browse files

getTorBrowserUserAgent: simplify.

Let's just duplicate the Tor Browser user-agent string, which hasn't
changed for years (and likely won't for a loooooong time). Generating
it from Tor Browser 8.0.2+ is much more complicated since it has been
split up in several different prefs.

Refs: #16017
parent 16a2152b
......@@ -3,16 +3,4 @@
set -e
set -u
# Import the TBB_INSTALL variable
. /usr/local/lib/tails-shell-library/
ua="$(unzip -q -p "${TBB_INSTALL}"/browser/omni.ja \
defaults/preferences/000-tor-browser.js | \
sed -n 's@^pref("general\.useragent\.override", "\(.*\)");$@\1@p')"
if [ -z "${ua:-}" ]; then
echo "Got empty user agent string" >&2
exit 1
echo "${ua}"
echo 'Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment