android:key="do_not_track"
android:title="@string/do_not_track"
android:summary="@string/do_not_track_summary"
- android:defaultValue="true" />
-
- <SwitchPreference
- android:key="proxy_through_orbot"
- android:title="@string/proxy_through_orbot"
- android:summary="@string/proxy_through_orbot_summary"
android:defaultValue="false" />
-
</PreferenceCategory>
<PreferenceCategory
android:defaultValue="true" />
</PreferenceCategory>
+ <PreferenceCategory
+ android:key="tor"
+ android:title="@string/tor" >
+
+ <SwitchPreference
+ android:key="proxy_through_orbot"
+ android:title="@string/proxy_through_orbot"
+ android:summary="@string/proxy_through_orbot_summary"
+ android:defaultValue="false" />
+
+ <EditTextPreference
+ android:key="tor_homepage"
+ android:title="@string/tor_homepage"
+ android:defaultValue="https://3g2upl4pq6kufc4m.onion"
+ android:inputType="textUri" />
+
+ <ListPreference
+ android:key="tor_javascript_disabled_search"
+ android:title="@string/tor_javascript_disabled_search"
+ android:entries="@array/tor_javascript_disabled_search_entries"
+ android:entryValues="@array/tor_javascript_disabled_search_entry_values"
+ android:defaultValue="https://3g2upl4pq6kufc4m.onion/html/?q=" />
+
+ <EditTextPreference
+ android:key="tor_javascript_disabled_search_custom_url"
+ android:title="@string/tor_javascript_disabled_search_custom_url"
+ android:defaultValue=""
+ android:inputType="textUri" />
+
+ <ListPreference
+ android:key="tor_javascript_enabled_search"
+ android:title="@string/tor_javascript_enabled_search"
+ android:entries="@array/tor_javascript_enabled_search_entries"
+ android:entryValues="@array/tor_javascript_enabled_search_entry_values"
+ android:defaultValue="https://3g2upl4pq6kufc4m.onion/?q=" />
+
+ <EditTextPreference
+ android:key="tor_javascript_enabled_search_custom_url"
+ android:title="@string/tor_javascript_enabled_search_custom_url"
+ android:defaultValue=""
+ android:inputType="textUri" />
+ </PreferenceCategory>
+
<PreferenceCategory
android:key="general"
android:title="@string/general" >
<EditTextPreference
android:key="homepage"
- android:title="@string/homepage_preference"
+ android:title="@string/homepage"
android:defaultValue="https://www.duckduckgo.com"
android:inputType="textUri" />