744873fc92d9bea4e95e01f75faa8837e97e291d
[PrivacyBrowser.git] / app / src / main / res / menu / webview_options_menu.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2019 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 <menu
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:app="http://schemas.android.com/apk/res-auto"
24     xmlns:tools="http://schemas.android.com/tools"
25     tools:context=".activities.MainWebViewActivity" >
26
27     <item
28         android:id="@+id/toggle_javascript"
29         android:title="@string/javascript"
30         android:orderInCategory="100"
31         android:icon="@drawable/privacy_mode"
32         app:showAsAction="ifRoom" />
33
34     <item
35         android:id="@+id/add_or_edit_domain"
36         android:title="@string/add_domain_settings"
37         android:orderInCategory="200"
38         app:showAsAction="never" />
39
40     <item
41         android:id="@+id/toggle_first_party_cookies"
42         android:title="@string/first_party_cookies"
43         android:orderInCategory="300"
44         android:checkable="true"
45         android:icon="@drawable/cookies_disabled_light"
46         app:showAsAction="never" />
47
48     <item
49         android:id="@+id/toggle_third_party_cookies"
50         android:title="@string/third_party_cookies"
51         android:orderInCategory="400"
52         android:checkable="true"
53         app:showAsAction="never" />
54
55     <item
56         android:id="@+id/toggle_dom_storage"
57         android:title="@string/dom_storage"
58         android:orderInCategory="500"
59         android:checkable="true"
60         android:icon="@drawable/dom_storage_disabled_light"
61         app:showAsAction="never" />
62
63     <item
64         android:id="@+id/toggle_save_form_data"
65         android:title="@string/form_data"
66         android:orderInCategory="600"
67         android:checkable="true"
68         app:showAsAction="never" />
69
70     <item
71         android:id="@+id/clear_data"
72         android:title="@string/clear_data"
73         android:orderInCategory="700"
74         app:showAsAction="never" >
75
76         <menu>
77             <item
78                 android:id="@+id/clear_cookies"
79                 android:title="@string/clear_cookies"
80                 android:orderInCategory="710"
81                 app:showAsAction="never" />
82
83             <item
84                 android:id="@+id/clear_dom_storage"
85                 android:title="@string/clear_dom_storage"
86                 android:orderInCategory="720"
87                 app:showAsAction="never" />
88
89             <item
90                 android:id="@+id/clear_form_data"
91                 android:title="@string/clear_form_data"
92                 android:orderInCategory="730"
93                 app:showAsAction="never" />
94         </menu>
95     </item>
96
97     <item
98         android:id="@+id/blocklists"
99         android:title="@string/blocklists"
100         android:orderInCategory="800"
101         app:showAsAction="never" >
102
103         <menu>
104             <item
105                 android:id="@+id/easylist"
106                 android:title="@string/easylist"
107                 android:orderInCategory="810"
108                 android:checkable="true"
109                 app:showAsAction="never" />
110
111             <item
112                 android:id="@+id/easyprivacy"
113                 android:title="@string/easyprivacy"
114                 android:orderInCategory="820"
115                 android:checkable="true"
116                 app:showAsAction="never" />
117
118             <item
119                 android:id="@+id/fanboys_annoyance_list"
120                 android:title="@string/options_fanboys_annoyance_list"
121                 android:orderInCategory="830"
122                 android:checkable="true"
123                 app:showAsAction="never" />
124
125             <item
126                 android:id="@+id/fanboys_social_blocking_list"
127                 android:title="@string/options_fanboys_social_blocking_list"
128                 android:orderInCategory="840"
129                 android:checkable="true"
130                 app:showAsAction="never" />
131
132             <item
133                 android:id="@+id/ultralist"
134                 android:title="@string/ultralist"
135                 android:orderInCategory="850"
136                 android:checkable="true"
137                 app:showAsAction="never" />
138
139             <item
140                 android:id="@+id/ultraprivacy"
141                 android:title="@string/ultraprivacy"
142                 android:orderInCategory="860"
143                 android:checkable="true"
144                 app:showAsAction="never" />
145
146             <item
147                 android:id="@+id/block_all_third_party_requests"
148                 android:title="@string/options_block_all_third_party_requests"
149                 android:orderInCategory="870"
150                 android:checkable="true"
151                 app:showAsAction="never" />
152         </menu>
153     </item>
154
155     <item
156         android:id="@+id/proxy"
157         android:title="@string/proxy"
158         android:orderInCategory="900"
159         app:showAsAction="never" >
160
161         <menu>
162             <group android:checkableBehavior="single" >
163                 <item
164                     android:id="@+id/proxy_none"
165                     android:title="@string/proxy_none"
166                     android:orderInCategory="910"
167                     app:showAsAction="never" />
168
169                 <item
170                     android:id="@+id/proxy_tor"
171                     android:title="@string/proxy_tor"
172                     android:orderInCategory="920"
173                     app:showAsAction="never" />
174
175                 <item
176                     android:id="@+id/proxy_i2p"
177                     android:title="@string/proxy_i2p"
178                     android:orderInCategory="930"
179                     app:showAsAction="never" />
180
181                 <item
182                     android:id="@+id/proxy_custom"
183                     android:title="@string/proxy_custom"
184                     android:orderInCategory="940"
185                     app:showAsAction="never" />
186             </group>
187         </menu>
188     </item>
189
190     <item
191         android:id="@+id/page"
192         android:title="@string/page"
193         android:orderInCategory="1000"
194         app:showAsAction="never" >
195
196         <menu>
197             <item
198                 android:id="@+id/user_agent"
199                 android:title="@string/options_user_agent"
200                 android:orderInCategory="1010"
201                 app:showAsAction="never" >
202
203                 <menu>
204                     <group android:checkableBehavior="single">
205                         <item
206                             android:id="@+id/user_agent_privacy_browser"
207                             android:title="@string/user_agent_privacy_browser"
208                             android:orderInCategory="1011"
209                             app:showAsAction="never" />
210
211                         <item
212                             android:id="@+id/user_agent_webview_default"
213                             android:title="@string/user_agent_webview_default"
214                             android:orderInCategory="1012"
215                             app:showAsAction="never" />
216
217                         <item
218                             android:id="@+id/user_agent_firefox_on_android"
219                             android:title="@string/user_agent_firefox_on_android"
220                             android:orderInCategory="1013"
221                             app:showAsAction="never" />
222
223                         <item
224                             android:id="@+id/user_agent_chrome_on_android"
225                             android:title="@string/user_agent_chrome_on_android"
226                             android:orderInCategory="1014"
227                             app:showAsAction="never" />
228
229                         <item
230                             android:id="@+id/user_agent_safari_on_ios"
231                             android:title="@string/user_agent_safari_on_ios"
232                             android:orderInCategory="1015"
233                             app:showAsAction="never" />
234
235                         <item
236                             android:id="@+id/user_agent_firefox_on_linux"
237                             android:title="@string/user_agent_firefox_on_linux"
238                             android:orderInCategory="1016"
239                             app:showAsAction="never" />
240
241                         <item
242                             android:id="@+id/user_agent_chromium_on_linux"
243                             android:title="@string/user_agent_chromium_on_linux"
244                             android:orderInCategory="1017"
245                             app:showAsAction="never" />
246
247                         <item
248                             android:id="@+id/user_agent_firefox_on_windows"
249                             android:title="@string/user_agent_firefox_on_windows"
250                             android:orderInCategory="1018"
251                             app:showAsAction="never" />
252
253                         <item
254                             android:id="@+id/user_agent_chrome_on_windows"
255                             android:title="@string/user_agent_chrome_on_windows"
256                             android:orderInCategory="1019"
257                             app:showAsAction="never" />
258
259                         <item
260                             android:id="@+id/user_agent_edge_on_windows"
261                             android:title="@string/user_agent_edge_on_windows"
262                             android:orderInCategory="1020"
263                             app:showAsAction="never" />
264
265                         <item
266                             android:id="@+id/user_agent_internet_explorer_on_windows"
267                             android:title="@string/user_agent_internet_explorer_on_windows"
268                             android:orderInCategory="1021"
269                             app:showAsAction="never" />
270
271                         <item
272                             android:id="@+id/user_agent_safari_on_macos"
273                             android:title="@string/user_agent_safari_on_macos"
274                             android:orderInCategory="1022"
275                             app:showAsAction="never" />
276
277                         <item
278                             android:id="@+id/user_agent_custom"
279                             android:title="@string/user_agent_custom"
280                             android:orderInCategory="1023"
281                             app:showAsAction="never" />
282                     </group>
283                 </menu>
284             </item>
285
286             <item
287                 android:id="@+id/swipe_to_refresh"
288                 android:title="@string/swipe_to_refresh_options_menu"
289                 android:orderInCategory="1030"
290                 android:checkable="true"
291                 app:showAsAction="never" />
292
293             <item
294                 android:id="@+id/wide_viewport"
295                 android:title="@string/wide_viewport"
296                 android:orderInCategory="1040"
297                 android:checkable="true"
298                 app:showAsAction="never" />
299
300             <item
301                 android:id="@+id/display_images"
302                 android:title="@string/display_images"
303                 android:orderInCategory="1050"
304                 android:checkable="true"
305                 app:showAsAction="never" />
306
307             <item
308                 android:id="@+id/night_mode"
309                 android:title="@string/options_night_mode"
310                 android:orderInCategory="1060"
311                 android:checkable="true"
312                 app:showAsAction="never" />
313
314             <item
315                 android:id="@+id/font_size"
316                 android:title="@string/font_size"
317                 android:orderInCategory="1070"
318                 app:showAsAction="never" >
319             </item>
320
321             <item
322                 android:id="@+id/find_on_page"
323                 android:title="@string/find_on_page"
324                 android:orderInCategory="1080"
325                 app:showAsAction="never|collapseActionView" />
326
327             <item
328                 android:id="@+id/print"
329                 android:title="@string/print"
330                 android:orderInCategory="1090"
331                 app:showAsAction="never" />
332
333             <item
334                 android:id="@+id/save_as_image"
335                 android:title="@string/save_as_image"
336                 android:orderInCategory="1100"
337                 app:showAsAction="never" />
338
339             <item
340                 android:id="@+id/add_to_homescreen"
341                 android:title="@string/add_to_home_screen"
342                 android:orderInCategory="1110"
343                 app:showAsAction="never" />
344
345             <item
346                 android:id="@+id/view_source"
347                 android:title="@string/view_source"
348                 android:orderInCategory="1120"
349                 app:showAsAction="never" />
350         </menu>
351     </item>
352
353     <item
354         android:id="@+id/share"
355         android:title="@string/share"
356         android:orderInCategory="1200"
357         app:showAsAction="never" >
358
359         <menu>
360             <item
361                 android:id="@+id/share_url"
362                 android:title="@string/share_url"
363                 android:orderInCategory="1210"
364                 app:showAsAction="never" />
365
366             <item
367                 android:id="@+id/open_with_app"
368                 android:title="@string/open_with_app"
369                 android:orderInCategory="1220"
370                 app:showAsAction="never" />
371
372             <item
373                 android:id="@+id/open_with_browser"
374                 android:title="@string/open_with_browser"
375                 android:orderInCategory="1230"
376                 app:showAsAction="never" />
377         </menu>
378     </item>
379
380     <item
381         android:id="@+id/refresh"
382         android:title="@string/refresh"
383         android:orderInCategory="1300"
384         app:showAsAction="never" />
385
386     <item
387         android:id="@+id/ad_consent"
388         android:title="@string/ad_consent"
389         android:orderInCategory="1400"
390         app:showAsAction="never" />
391 </menu>