]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/xml/preferences.xml
Add an Incognito Mode. Implements https://redmine.stoutner.com/issues/116.
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2016 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
22     <PreferenceCategory
23         android:key="privacy"
24         android:title="@string/privacy" >
25
26         <SwitchPreference
27             android:key="javascript_enabled"
28             android:title="@string/javascript_preference"
29             android:summary="@string/javascript_preference_summary"
30             android:defaultValue="false" />
31
32         <SwitchPreference
33             android:key="first_party_cookies_enabled"
34             android:title="@string/first_party_cookies_preference"
35             android:summary="@string/first_party_cookies_preference_summary"
36             android:defaultValue="false" />
37
38         <SwitchPreference
39             android:key="third_party_cookies_enabled"
40             android:title="@string/third_party_cookies_preference"
41             android:summary="@string/third_party_cookies_summary"
42             android:defaultValue="false" />
43
44         <SwitchPreference
45             android:key="dom_storage_enabled"
46             android:title="@string/dom_storage_preference"
47             android:summary="@string/dom_storage_preference_summary"
48             android:defaultValue="false" />
49
50         <SwitchPreference
51             android:key="save_form_data_enabled"
52             android:title="@string/save_form_data_preference"
53             android:summary="@string/save_form_data_preference_summary"
54             android:defaultValue="false" />
55
56         <ListPreference
57             android:key="user_agent"
58             android:title="@string/user_agent"
59             android:entries="@array/user_agent_entries"
60             android:entryValues="@array/user_agent_entry_values"
61             android:defaultValue="PrivacyBrowser/1.0" />
62
63         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
64         <EditTextPreference
65             android:key="custom_user_agent"
66             android:title="@string/custom_user_agent"
67             android:defaultValue="PrivacyBrowser/1.0"
68             android:inputType="textVisiblePassword|textMultiLine" />
69
70         <SwitchPreference
71             android:key="block_ads"
72             android:title="@string/block_ads"
73             android:summary="@string/block_ads_summary"
74             android:defaultValue="true" />
75
76         <SwitchPreference
77             android:key="incognito_mode"
78             android:title="@string/incognito_mode"
79             android:summary="@string/incognito_mode_summary"
80             android:defaultValue="false" />
81
82         <SwitchPreference
83             android:key="do_not_track"
84             android:title="@string/do_not_track"
85             android:summary="@string/do_not_track_summary"
86             android:defaultValue="false" />
87     </PreferenceCategory>
88
89     <PreferenceCategory
90         android:key="tor"
91         android:title="@string/tor" >
92
93         <SwitchPreference
94             android:key="proxy_through_orbot"
95             android:title="@string/proxy_through_orbot"
96             android:summary="@string/proxy_through_orbot_summary"
97             android:defaultValue="false" />
98
99         <EditTextPreference
100             android:key="tor_homepage"
101             android:title="@string/tor_homepage"
102             android:defaultValue="https://3g2upl4pq6kufc4m.onion"
103             android:inputType="textUri" />
104
105         <ListPreference
106             android:key="tor_javascript_disabled_search"
107             android:title="@string/tor_javascript_disabled_search"
108             android:entries="@array/tor_javascript_disabled_search_entries"
109             android:entryValues="@array/tor_javascript_disabled_search_entry_values"
110             android:defaultValue="https://3g2upl4pq6kufc4m.onion/html/?q=" />
111
112         <EditTextPreference
113             android:key="tor_javascript_disabled_search_custom_url"
114             android:title="@string/tor_javascript_disabled_search_custom_url"
115             android:defaultValue=""
116             android:inputType="textUri" />
117
118         <ListPreference
119             android:key="tor_javascript_enabled_search"
120             android:title="@string/tor_javascript_enabled_search"
121             android:entries="@array/tor_javascript_enabled_search_entries"
122             android:entryValues="@array/tor_javascript_enabled_search_entry_values"
123             android:defaultValue="https://3g2upl4pq6kufc4m.onion/?q=" />
124
125         <EditTextPreference
126             android:key="tor_javascript_enabled_search_custom_url"
127             android:title="@string/tor_javascript_enabled_search_custom_url"
128             android:defaultValue=""
129             android:inputType="textUri" />
130     </PreferenceCategory>
131
132     <PreferenceCategory
133         android:key="search"
134         android:title="@string/search">
135
136         <ListPreference
137             android:key="javascript_disabled_search"
138             android:title="@string/javascript_disabled_search"
139             android:entries="@array/javascript_disabled_search_entries"
140             android:entryValues="@array/javascript_disabled_search_entry_values"
141             android:defaultValue="https://duckduckgo.com/html/?q=" />
142
143         <EditTextPreference
144             android:key="javascript_disabled_search_custom_url"
145             android:title="@string/javascript_disabled_search_custom_url"
146             android:defaultValue=""
147             android:inputType="textUri" />
148
149         <ListPreference
150             android:key="javascript_enabled_search"
151             android:title="@string/javascript_enabled_search"
152             android:entries="@array/javascript_enabled_search_entries"
153             android:entryValues="@array/javascript_enabled_search_entry_values"
154             android:defaultValue="https://duckduckgo.com/?q=" />
155
156         <EditTextPreference
157             android:key="javascript_enabled_search_custom_url"
158             android:title="@string/javascript_enabled_search_custom_url"
159             android:defaultValue=""
160             android:inputType="textUri" />
161     </PreferenceCategory>
162
163     <PreferenceCategory
164         android:key="full_screen"
165         android:title="@string/full_screen">
166
167         <SwitchPreference
168             android:key="enable_full_screen_browsing_mode"
169             android:title="@string/enable_full_screen_browsing_mode"
170             android:summary="@string/enable_full_screen_browsing_mode_summary"
171             android:defaultValue="false" />
172
173         <SwitchPreference
174             android:key="hide_system_bars"
175             android:title="@string/hide_system_bars"
176             android:summary="@string/hide_system_bars_summary"
177             android:defaultValue="false" />
178
179         <SwitchPreference
180             android:key="translucent_navigation_bar"
181             android:title="@string/translucent_navigation_bar"
182             android:summary="@string/translucent_navigation_bar_summary"
183             android:defaultValue="true" />
184     </PreferenceCategory>
185
186     <PreferenceCategory
187         android:key="general"
188         android:title="@string/general" >
189
190         <EditTextPreference
191             android:key="homepage"
192             android:title="@string/homepage"
193             android:defaultValue="https://duckduckgo.com"
194             android:inputType="textUri" />
195
196         <ListPreference
197             android:key="default_font_size"
198             android:title="@string/default_font_size"
199             android:entries="@array/default_font_size_entries"
200             android:entryValues="@array/default_font_size_entry_values"
201             android:defaultValue="100" />
202
203         <SwitchPreference
204             android:key="swipe_to_refresh"
205             android:title="@string/swipe_to_refresh_enabled"
206             android:summary="@string/swipe_to_refresh_enabled_summary"
207             android:defaultValue="false" />
208
209         <SwitchPreference
210             android:key="display_additional_app_bar_icons"
211             android:title="@string/display_additional_app_bar_icons"
212             android:summary="@string/display_additional_app_bar_icons_summary"
213             android:defaultValue="false" />
214     </PreferenceCategory>
215 </PreferenceScreen>