Commit 663f4b84 authored by Tails developers's avatar Tails developers
Browse files

Make wikipedia the default and only search engine in the Unsafe Browser.

parent ab2c7c69
......@@ -135,6 +135,26 @@ EOF
# Remove all bookmarks
rm -f ${CHROOT}/etc/iceweasel/profile/bookmarks.html
# Make the English wikipedia the only available and default search
# engine (this is a documented cue for identifying the Unsafe Browser,
# which is extra important in camouflage mode when the scary coloured
# theme is disabled.)
find ${CHROOT}/etc/iceweasel/profile/searchplugins/ \
${CHROOT}/etc/iceweasel/searchplugins -name "*.xml" | \
while read searchengine; do
if basename "$searchengine" | grep -qvi wikipedia; then
rm "${searchengine}"
fi
done
sed -i '/^user_pref("browser.search.defaultenginename",/d' \
${CHROOT}/etc/iceweasel/profile/user.js
echo 'user_pref("browser.search.defaultenginename", "Wikipedia (en)");' >> \
${CHROOT}/etc/iceweasel/profile/user.js
sed -i '/^user_pref("browser.search.selectedEngine",/d' \
${CHROOT}/etc/iceweasel/profile/user.js
echo 'user_pref("browser.search.selectedEngine", "Wikipedia (en)");' >> \
${CHROOT}/etc/iceweasel/profile/user.js
}
run_browser_in_chroot () {
......
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