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
7a3fd807
Commit
7a3fd807
authored
Oct 20, 2014
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate some data from i2p-browser script.
parent
57135a4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
119 deletions
+118
-119
config/chroot_local-includes/usr/local/sbin/i2p-browser
config/chroot_local-includes/usr/local/sbin/i2p-browser
+3
-119
config/chroot_local-includes/usr/share/tails/i2p-browser/i2p-browser.js
...local-includes/usr/share/tails/i2p-browser/i2p-browser.js
+23
-0
config/chroot_local-includes/usr/share/tails/i2p-browser/userChrome.css
...local-includes/usr/share/tails/i2p-browser/userChrome.css
+92
-0
No files found.
config/chroot_local-includes/usr/local/sbin/i2p-browser
View file @
7a3fd807
...
...
@@ -132,130 +132,14 @@ configure_chroot () {
echo
'user_pref("extensions.getAddons.showPane", false);'
>>
\
${
BROWSER_PREFS
}
# add the I2P proxy to all protocols
cat
>
"
${
BROWSER_PREF_DIR
}
/i2p.js"
<<
EOF
user_pref("extensions.torbutton.http_port", 4444);
user_pref("extensions.torbutton.http_proxy", "127.0.0.1");
user_pref("extensions.torbutton.https_port", 4444);
user_pref("extensions.torbutton.https_proxy", "127.0.0.1");
user_pref("extensions.torbutton.custom.ftp_port", 4444);
user_pref("extensions.torbutton.custom.ftp_proxy", "127.0.0.1");
user_pref("extensions.torbutton.custom.http_port", 4444);
user_pref("extensions.torbutton.custom.http_proxy", "127.0.0.1");
user_pref("extensions.torbutton.custom.https_port", 4444);
user_pref("extensions.torbutton.custom.https_proxy", "127.0.0.1");
user_pref("extensions.torbutton.ftp_port", 4444);
user_pref("extensions.torbutton.ftp_proxy", "127.0.0.1");
user_pref("extensions.torbutton.gopher_port", 4444);
user_pref("extensions.torbutton.gopher_proxy", "127.0.0.1");
user_pref("extensions.torbutton.inserted_button", true);
user_pref("extensions.torbutton.settings_method", "custom");
user_pref("network.proxy.ftp", "127.0.0.1");
user_pref("network.proxy.ftp_port", 4444);
user_pref("network.proxy.http", "127.0.0.1");
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);
EOF
cp
/usr/share/tails/i2p-browser/i2p-browser.js
"
${
BROWSER_PREF_DIR
}
"
# Hide options in the I2P Browser.
# It would be good to implement the ability to persist the browser profile in the
# future. At that point, the Bookmark functionality could be restored.
BROWSER_CHROME
=
"
${
BROWSER_PROFILE
}
/chrome/userChrome.css"
mkdir
-p
"
$(
dirname
"
${
BROWSER_CHROME
}
"
)
"
cat
>
${
BROWSER_CHROME
}
<<
EOF
/* Required, do not remove */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Hide access to the bookmarks to try to prevent "data loss" due to users
* adding bookmarks even though the profile is destroyed at browser close.
* Keyboard shortcuts still work, but this makes it harder to 'accidentally'
* lose bookmarks.
*
* Note that any of the selectors that start with 'app' apply to the menu that
* is used if the main menu is hidden. Any that start with 'wrapper' are
* buttons that are normally visible within the 'customize toolbar' option. The
* others are probably self-explanatory.
*/
/* Remove the History and Bookmarks menus and buttons */
#appmenu_bookmarks,
#appmenu_history,
#bookmarks,
#bookmarks-menu-button,
#bookmarksMenu,
#history,
#history-menu,
#history-menu-button,
#wrapper-history-button,
#wrapper-bookmarks-button,
/* Hide the sidebar menu (underneath View) since the default sidebars consist
* of history and bookmarks. Also disable the bookmark toolbar.
*/
#toggle_PersonalToolbar,
#viewSidebarMenuMenu,
/* Remove the "Star button" and "History Dropdown arrow" from the URL bar
* since neither history nor bookmarks are saved.
*/
#star-button,
[anonid="historydropmarker"],
/* Remove bookmark options from the context menus */
#context-bookmarkframe,
#context-bookmarklink,
#context-bookmarkpage,
/* Hide the option for emailing links since it's doomed to failure
* without a configured email client.
*/
menuitem[command="Browser:SendLink"],
/* Hide Print options */
/*
#menu_printSetup,
#menu_printPreview,
#menu_print,
#menu_print + menuseparator,
[command="cmd_print"],
*/
/* Hide the sync functionality which won't work with I2P */
#BrowserPreferences radio[pane="paneSync"],
#sync-button,
#sync-menu-button,
#sync-setup,
#sync-setup-appmenu,
#sync-status-button,
#sync-syncnowitem-appmenu,
#wrapper-sync-button,
/* Without I2P search engines defined, the search bar is useless.
* Since there are no I2P search engines added to Tails (yet),
* let's hide it and the Update Pane in Firefox's Preferences.
*/
#search-container,
#updateTab,
/* Hide options in the Help menu that lead to disallowed resources on the
* Internet.
*/
#appmenu_feedbackPage,
#appmenu_gettingStarted,
#appmenu_openHelp,
#feedbackPage,
#gettingStarted,
#menu_HelpPopup_reportPhishingtoolmenu,
#menu_openHelp,
/* Hide TorBrowser Health Report and its configuration option */
#appmenu_healthReport,
#dataChoicesTab,
#healthReport
/* Now the actual hiding */
{display: none !important}
EOF
cp
/usr/share/tails/i2p-browser/userChrome.css
${
BROWSER_CHROME
}
rm
-rf
${
BROWSER_EXT
}
/branding@amnesia.boum.org
# Remove all bookmarks
...
...
config/chroot_local-includes/usr/share/tails/i2p-browser/i2p-browser.js
0 → 100644
View file @
7a3fd807
user_pref
(
"
extensions.torbutton.http_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.http_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.https_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.https_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.custom.ftp_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.custom.ftp_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.custom.http_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.custom.http_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.custom.https_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.custom.https_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.ftp_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.ftp_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.gopher_port
"
,
4444
);
user_pref
(
"
extensions.torbutton.gopher_proxy
"
,
"
127.0.0.1
"
);
user_pref
(
"
extensions.torbutton.inserted_button
"
,
true
);
user_pref
(
"
extensions.torbutton.settings_method
"
,
"
custom
"
);
user_pref
(
"
network.proxy.ftp
"
,
"
127.0.0.1
"
);
user_pref
(
"
network.proxy.ftp_port
"
,
4444
);
user_pref
(
"
network.proxy.http
"
,
"
127.0.0.1
"
);
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
);
config/chroot_local-includes/usr/share/tails/i2p-browser/userChrome.css
0 → 100644
View file @
7a3fd807
/* Required, do not remove */
@namespace
url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul")
;
/* Hide access to the bookmarks to try to prevent "data loss" due to users
* adding bookmarks even though the profile is destroyed at browser close.
* Keyboard shortcuts still work, but this makes it harder to 'accidentally'
* lose bookmarks.
*
* Note that any of the selectors that start with 'app' apply to the menu that
* is used if the main menu is hidden. Any that start with 'wrapper' are
* buttons that are normally visible within the 'customize toolbar' option. The
* others are probably self-explanatory.
*/
/* Remove the History and Bookmarks menus and buttons */
#appmenu_bookmarks
,
#appmenu_history
,
#bookmarks
,
#bookmarks-menu-button
,
#bookmarksMenu
,
#history
,
#history-menu
,
#history-menu-button
,
#wrapper-history-button
,
#wrapper-bookmarks-button
,
/* Hide the sidebar menu (underneath View) since the default sidebars consist
* of history and bookmarks. Also disable the bookmark toolbar.
*/
#toggle_PersonalToolbar
,
#viewSidebarMenuMenu
,
/* Remove the "Star button" and "History Dropdown arrow" from the URL bar
* since neither history nor bookmarks are saved.
*/
#star-button
,
[
anonid
=
"historydropmarker"
],
/* Remove bookmark options from the context menus */
#context-bookmarkframe
,
#context-bookmarklink
,
#context-bookmarkpage
,
/* Hide the option for emailing links since it's doomed to failure
* without a configured email client.
*/
menuitem
[
command
=
"Browser:SendLink"
],
/* Hide Print options */
/*
#menu_printSetup,
#menu_printPreview,
#menu_print,
#menu_print + menuseparator,
[command="cmd_print"],
*/
/* Hide the sync functionality which won't work with I2P */
#BrowserPreferences
radio
[
pane
=
"paneSync"
],
#sync-button
,
#sync-menu-button
,
#sync-setup
,
#sync-setup-appmenu
,
#sync-status-button
,
#sync-syncnowitem-appmenu
,
#wrapper-sync-button
,
/* Without I2P search engines defined, the search bar is useless.
* Since there are no I2P search engines added to Tails (yet),
* let's hide it and the Update Pane in Firefox's Preferences.
*/
#search-container
,
#updateTab
,
/* Hide options in the Help menu that lead to disallowed resources on the
* Internet.
*/
#appmenu_feedbackPage
,
#appmenu_gettingStarted
,
#appmenu_openHelp
,
#feedbackPage
,
#gettingStarted
,
#menu_HelpPopup_reportPhishingtoolmenu
,
#menu_openHelp
,
/* Hide TorBrowser Health Report and its configuration option */
#appmenu_healthReport
,
#dataChoicesTab
,
#healthReport
/* Now the actual hiding */
{
display
:
none
!important
}
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