Add on-the-fly blocklist controls. https://redmine.stoutner.com/issues/279
[PrivacyBrowser.git] / app / src / main / res / menu / webview_options_menu.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2018 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         app:showAsAction="ifRoom" />
32
33     <item
34         android:id="@+id/add_or_edit_domain"
35         android:title="@string/add_domain_settings"
36         android:orderInCategory="200"
37         app:showAsAction="never" />
38
39     <item
40         android:id="@+id/toggle_first_party_cookies"
41         android:title="@string/first_party_cookies"
42         android:orderInCategory="300"
43         android:checkable="true"
44         app:showAsAction="never" />
45
46     <item
47         android:id="@+id/toggle_third_party_cookies"
48         android:title="@string/third_party_cookies"
49         android:orderInCategory="400"
50         android:checkable="true"
51         app:showAsAction="never" />
52
53     <item
54         android:id="@+id/toggle_dom_storage"
55         android:title="@string/dom_storage"
56         android:orderInCategory="500"
57         android:checkable="true"
58         app:showAsAction="never" />
59
60     <item
61         android:id="@+id/toggle_save_form_data"
62         android:title="@string/form_data"
63         android:orderInCategory="600"
64         android:checkable="true"
65         app:showAsAction="never" />
66
67     <item
68         android:id="@+id/clear_data"
69         android:title="@string/clear_data"
70         android:orderInCategory="700"
71         app:showAsAction="never" >
72
73         <menu>
74             <item
75                 android:id="@+id/clear_cookies"
76                 android:title="@string/clear_cookies"
77                 android:orderInCategory="710"
78                 app:showAsAction="never" />
79
80             <item
81                 android:id="@+id/clear_dom_storage"
82                 android:title="@string/clear_dom_storage"
83                 android:orderInCategory="720"
84                 app:showAsAction="never" />
85
86             <item
87                 android:id="@+id/clear_form_data"
88                 android:title="@string/clear_form_data"
89                 android:orderInCategory="730"
90                 app:showAsAction="never" />
91         </menu>
92     </item>
93
94     <item
95         android:id="@+id/blocklists"
96         android:title="@string/blocklists"
97         android:orderInCategory="800"
98         app:showAsAction="never" >
99
100         <menu>
101             <item
102                 android:id="@+id/easylist"
103                 android:title="@string/easylist"
104                 android:orderInCategory="810"
105                 android:checkable="true"
106                 app:showAsAction="never" />
107
108             <item
109                 android:id="@+id/easyprivacy"
110                 android:title="@string/easyprivacy"
111                 android:orderInCategory="820"
112                 android:checkable="true"
113                 app:showAsAction="never" />
114
115             <item
116                 android:id="@+id/fanboys_annoyance_list"
117                 android:title="@string/options_fanboys_annoyance_list"
118                 android:orderInCategory="830"
119                 android:checkable="true"
120                 app:showAsAction="never" />
121
122             <item
123                 android:id="@+id/fanboys_social_blocking_list"
124                 android:title="@string/options_fanboys_social_blocking_list"
125                 android:orderInCategory="840"
126                 android:checkable="true"
127                 app:showAsAction="never" />
128         </menu>
129     </item>
130
131     <item
132         android:id="@+id/layout"
133         android:title="@string/layout"
134         android:orderInCategory="900"
135         app:showAsAction="never" >
136
137         <menu>
138             <item
139                 android:id="@+id/font_size"
140                 android:title="@string/font_size"
141                 android:orderInCategory="910"
142                 app:showAsAction="never" >
143
144                 <menu>
145                     <group android:checkableBehavior="single">
146                         <item
147                             android:id="@+id/font_size_twenty_five_percent"
148                             android:title="@string/twenty_five_percent"
149                             android:orderInCategory="911"
150                             app:showAsAction="never" />
151
152                         <item
153                             android:id="@+id/font_size_fifty_percent"
154                             android:title="@string/fifty_percent"
155                             android:orderInCategory="912"
156                             app:showAsAction="never" />
157
158                         <item
159                             android:id="@+id/font_size_seventy_five_percent"
160                             android:title="@string/seventy_five_percent"
161                             android:orderInCategory="913"
162                             app:showAsAction="never" />
163
164                         <item
165                             android:id="@+id/font_size_one_hundred_percent"
166                             android:title="@string/one_hundred_percent"
167                             android:orderInCategory="914"
168                             app:showAsAction="never" />
169
170                         <item
171                             android:id="@+id/font_size_one_hundred_twenty_five_percent"
172                             android:title="@string/one_hundred_twenty_five_percent"
173                             android:orderInCategory="915"
174                             app:showAsAction="never" />
175
176                         <item
177                             android:id="@+id/font_size_one_hundred_fifty_percent"
178                             android:title="@string/one_hundred_fifty_percent"
179                             android:orderInCategory="916"
180                             app:showAsAction="never" />
181
182                         <item
183                             android:id="@+id/font_size_one_hundred_seventy_five_percent"
184                             android:title="@string/one_hundred_seventy_five_percent"
185                             android:orderInCategory="917"
186                             app:showAsAction="never" />
187
188                         <item
189                             android:id="@+id/font_size_two_hundred_percent"
190                             android:title="@string/two_hundred_percent"
191                             android:orderInCategory="918"
192                             app:showAsAction="never" />
193                     </group>
194                 </menu>
195             </item>
196
197             <item
198                 android:id="@+id/swipe_to_refresh"
199                 android:title="@string/swipe_to_refresh_options_menu"
200                 android:orderInCategory="920"
201                 android:checkable="true"
202                 app:showAsAction="never" />
203
204             <item
205                 android:id="@+id/display_images"
206                 android:title="@string/display_images"
207                 android:orderInCategory="930"
208                 android:checkable="true"
209                 app:showAsAction="never" />
210
211             <item
212                 android:id="@+id/view_source"
213                 android:title="@string/view_source"
214                 android:orderInCategory="940"
215                 app:showAsAction="never" />
216         </menu>
217     </item>
218
219     <item
220         android:id="@+id/share"
221         android:title="@string/share"
222         android:orderInCategory="1000"
223         app:showAsAction="never" />
224
225     <item
226         android:id="@+id/find_on_page"
227         android:title="@string/find_on_page"
228         android:orderInCategory="1100"
229         app:showAsAction="never|collapseActionView" />
230     <item
231         android:id="@+id/print"
232         android:title="@string/print"
233         android:orderInCategory="1200"
234         app:showAsAction="never" />
235
236     <item
237         android:id="@+id/add_to_homescreen"
238         android:title="@string/add_to_home_screen"
239         android:orderInCategory="1300"
240         app:showAsAction="never" />
241
242     <item
243         android:id="@+id/refresh"
244         android:title="@string/refresh"
245         android:orderInCategory="1400"
246         app:showAsAction="never" />
247
248     <item
249         android:id="@+id/ad_consent"
250         android:title="@string/ad_consent"
251         android:orderInCategory="1500"
252         app:showAsAction="never" />
253 </menu>