Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
cd8fb7d5
Commit
cd8fb7d5
authored
Oct 21, 2014
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate more data from i2p-browser script.
parent
552fffcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
config/chroot_local-includes/usr/local/sbin/i2p-browser
config/chroot_local-includes/usr/local/sbin/i2p-browser
+1
-17
config/chroot_local-includes/usr/share/tails/i2p-browser/i2p-browser-theme.js
...includes/usr/share/tails/i2p-browser/i2p-browser-theme.js
+2
-0
config/chroot_local-includes/usr/share/tails/i2p-browser/i2p-browser.js
...local-includes/usr/share/tails/i2p-browser/i2p-browser.js
+8
-0
No files found.
config/chroot_local-includes/usr/local/sbin/i2p-browser
View file @
cd8fb7d5
...
...
@@ -101,12 +101,6 @@ configure_chroot () {
BEST_LOCALE
=
"
$(
guess_best_tor_browser_locale
)
"
configure_xulrunner_app_locale
"
${
BROWSER_PROFILE
}
"
"
${
BEST_LOCALE
}
"
# Prevent File -> Print or CTRL+P from causing the browser to hang
# for several minutes while trying to communicate with CUPS, since
# access to port 631 isn't allowed through.
echo
'user_pref("print.postscript.cups.enabled", false);'
>>
\
${
BROWSER_PREFS
}
# Set the name (e.g. window title) of the browser
set_chroot_torbutton_browser_name
"
${
CHROOT
}
"
"
${
NAME
}
"
"
${
BEST_LOCALE
}
"
...
...
@@ -114,13 +108,6 @@ configure_chroot () {
echo
'user_pref("browser.startup.homepage", "'
${
START_PAGE
}
'");'
>>
\
${
BROWSER_PREFS
}
# Disable searching from the URL bar
echo
'user_pref("keyword.enabled", false);'
>>
\
${
BROWSER_PREFS
}
# Hide "Get Addons" in Add-ons manager
echo
'user_pref("extensions.getAddons.showPane", false);'
>>
\
${
BROWSER_PREFS
}
# add the I2P proxy to all protocols
cp
/usr/share/tails/i2p-browser/i2p-browser.js
"
${
BROWSER_PREF_DIR
}
"
...
...
@@ -141,10 +128,7 @@ configure_chroot () {
# Change the theme when not using Windows camouflage
if
[
-z
"
${
CAMOUFLAGE
}
"
]
;
then
cat
>>
${
BROWSER_PREFS
}
<<
EOF
user_pref("lightweightThemes.isThemeSelected", true);
user_pref("lightweightThemes.usedThemes", "[{
\"
id
\"
:
\"
1
\"
,
\"
name
\"
:
\"
I2P Browser
\"
,
\"
headerURL
\"
:
\"
file:///usr/share/pixmaps/red_dot.png
\"
,
\"
footerURL
\"
:
\"
file:///usr/share/pixmaps/red_dot.png
\"
,
\"
textcolor
\"
:
\"
#FFFFFF
\"
,
\"
accentcolor
\"
:
\"
#66ABEB
\"
,
\"
updateDate
\"
:0,
\"
installDate
\"
:0}]");
EOF
cat
/usr/share/tails/i2p-browser/i2p-browser-theme.js
>>
"
${
BROWSER_PREFS
}
"
else
# The camouflage activation script requires a dbus server for
# properly configuring GNOME, so we start one in the chroot
...
...
config/chroot_local-includes/usr/share/tails/i2p-browser/i2p-browser-theme.js
0 → 100644
View file @
cd8fb7d5
user_pref
(
"
lightweightThemes.isThemeSelected
"
,
true
);
user_pref
(
"
lightweightThemes.usedThemes
"
,
"
[{
\"
id
\"
:
\"
1
\"
,
\"
name
\"
:
\"
I2P Browser
\"
,
\"
headerURL
\"
:
\"
file:///usr/share/pixmaps/red_dot.png
\"
,
\"
footerURL
\"
:
\"
file:///usr/share/pixmaps/red_dot.png
\"
,
\"
textcolor
\"
:
\"
#FFFFFF
\"
,
\"
accentcolor
\"
:
\"
#66ABEB
\"
,
\"
updateDate
\"
:0,
\"
installDate
\"
:0}]
"
);
config/chroot_local-includes/usr/share/tails/i2p-browser/i2p-browser.js
View file @
cd8fb7d5
...
...
@@ -21,3 +21,11 @@ user_pref("network.proxy.http_port", 4444);
user_pref
(
"
network.proxy.no_proxies_on
"
,
"
127.0.0.1
"
);
user_pref
(
"
network.proxy.ssl
"
,
"
127.0.0.1
"
);
user_pref
(
"
network.proxy.ssl_port
"
,
4444
);
// Disable searching from the URL bar
user_pref
(
"
keyword.enabled
"
,
false
);
// Hide "Get Addons" in Add-ons manager
user_pref
(
"
extensions.getAddons.showPane
"
,
false
);
/* Prevent File -> Print or CTRL+P from causing the browser to hang
for several minutes while trying to communicate with CUPS, since
access to port 631 isn't allowed through. */
user_pref
(
"
print.postscript.cups.enabled
"
,
false
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment