Add a user agent for Safari on OS X.
[PrivacyBrowser.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="Default user agent" />
62
63         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.
64           android:imeOptions="flagNoExtractUi" is not set because with the dedicated number row there often isn't room to see the EditText in landscape orientation. -->
65         <EditTextPreference
66             android:key="custom_user_agent"
67             android:title="@string/custom_user_agent"
68             android:defaultValue="PrivacyBrowser/1.0"
69             android:inputType="textVisiblePassword|textMultiLine" />
70
71         <SwitchPreference
72             android:key="do_not_track"
73             android:title="@string/do_not_track"
74             android:summary="@string/do_not_track_summary"
75             android:defaultValue="true" />
76
77     </PreferenceCategory>
78
79     <PreferenceCategory
80         android:key="search"
81         android:title="@string/search">
82
83         <ListPreference
84             android:key="javascript_disabled_search"
85             android:title="@string/javascript_disabled_search"
86             android:entries="@array/javascript_disabled_search_entries"
87             android:entryValues="@array/javascript_disabled_search_entry_values"
88             android:defaultValue="https://duckduckgo.com/html/?q=" />
89
90         <!-- android:imeOptions="flagNoExtractUi" is not set because with the the length of the title of the dialog box
91           there often isn't enough space to see the EditText in landscape orientation.
92           android:singleLine="true" is not specified because it is the EditTextPreference default. -->
93         <EditTextPreference
94             android:key="javascript_disabled_search_custom_url"
95             android:title="@string/javascript_disabled_search_custom_url"
96             android:defaultValue=""
97             android:inputType="textUri" />
98
99         <ListPreference
100             android:key="javascript_enabled_search"
101             android:title="@string/javascript_enabled_search"
102             android:entries="@array/javascript_enabled_search_entries"
103             android:entryValues="@array/javascript_enabled_search_entry_values"
104             android:defaultValue="https://duckduckgo.com/?q=" />
105
106         <!-- android:imeOptions="flagNoExtractUi" is not set because with the the length of the title of the dialog box
107           there often isn't enough space to see the EditText in landscape orientation.
108           android:singleLine="true" is not specified because it is the EditTextPreference default. -->
109         <EditTextPreference
110             android:key="javascript_enabled_search_custom_url"
111             android:title="@string/javascript_enabled_search_custom_url"
112             android:defaultValue=""
113             android:inputType="textUri" />
114     </PreferenceCategory>
115
116     <PreferenceCategory
117         android:key="general"
118         android:title="@string/general" >
119
120         <!-- android:imeOptions="flagNoExtractUi" is not set because in special character mode there often isn't enough space to see the EditText in landscape orientation.
121           android:singleLine="true" is not specified because it is the EditTextPreference default. -->
122         <EditTextPreference
123             android:key="homepage"
124             android:title="@string/homepage_preference"
125             android:defaultValue="https://www.duckduckgo.com"
126             android:inputType="textUri" />
127
128         <ListPreference
129             android:key="default_font_size"
130             android:title="@string/default_font_size"
131             android:entries="@array/default_font_size_entries"
132             android:entryValues="@array/default_font_size_entry_values"
133             android:defaultValue="100" />
134
135         <SwitchPreference
136             android:key="swipe_to_refresh_enabled"
137             android:title="@string/swipe_to_refresh_enabled"
138             android:summary="@string/swipe_to_refresh_enabled_summary"
139             android:defaultValue="true" />
140
141         <SwitchPreference
142             android:key="display_additional_app_bar_icons"
143             android:title="@string/display_additional_app_bar_icons"
144             android:summary="@string/display_additional_app_bar_icons_summary"
145             android:defaultValue="false" />
146     </PreferenceCategory>
147 </PreferenceScreen>