about summary refs log tree commit diff stats
path: root/pages/options/options.html
blob: ca6429f1e590307c49950600713f990e7270c04f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title></title>
  <link href="../styles.css" rel="stylesheet">
  <title>Privacy Redirect Options</title>
</head>

<body>

  <div class="tab">
    <button class="tablinks" id="general-tab" data-localize="__MSG_generalTab__">General</button>
    <button class="tablinks" id="advanced-tab" data-localize="__MSG_advancedTab__">Advanced</button>
    <button class="tablinks" id="exceptions-tab" data-localize="__MSG_exceptionsTab__">Exceptions</button>
  </div>

  <div id="general" class="tabcontent">
    <section class="settings-block">
      <table class="option" aria-label="Toggle Nitter redirects">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_disableNitter__">Nitter Redirects</h1>
            </td>
            <td>
              <input aria-hidden="true" id="disable-nitter" type="checkbox" checked>&nbsp;
              <label for="disable-nitter" class="checkbox-label"></label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Toggle Invidious redirects">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_disableInvidious__">Invidious Redirects</h1>
            </td>
            <td>
              <input aria-hidden="true" id="disable-invidious" type="checkbox" checked>&nbsp;
              <label for="disable-invidious" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Toggle Bibliogram redirects">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_disableBibliogram__">Bibliogram Redirects</h1>
            </td>
            <td>
              <input aria-hidden="true" id="disable-bibliogram" type="checkbox" checked>&nbsp;
              <label for="disable-bibliogram" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Toggle OpenStreetMap redirects">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_disableOsm__">OpenStreetMap Redirects</h1>
            </td>
            <td>
              <input aria-hidden="true" id="disable-osm" type="checkbox" checked>&nbsp;
              <label for="disable-osm" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_nitterInstance__">Nitter Instance</h1>
      <div class="autocomplete">
        <input id="nitter-instance" type="url" name="nitter-instance" placeholder="https://nitter.net">
      </div>
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_invidiousInstance__">Invidious Instance</h1>
      <div class="autocomplete">
        <input id="invidious-instance" type="url" placeholder="https://invidio.us">
      </div>
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_bibliogramInstance__">Bibliogram Instance</h1>
      <div class="autocomplete">
        <input id="bibliogram-instance" type="url" placeholder="https://bibliogram.art">
      </div>
    </section>
    <sections class="settings-block">
      <h1 data-localize="__MSG_osmInstance__">OpenStreetMap Instance</h1>
      <div class="autocomplete">
        <input id="osm-instance" type="url" placeholder="https://openstreetmap.org">
      </div>
    </sections>
  </div>

  <div id="advanced" class="tabcontent">
    <section class="settings-block">
      <table class="option" aria-label="Always proxy videos through Invidious">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_alwaysProxy__">Always proxy videos through Invidious</h1>
            </td>
            <td>
              <input aria-hidden="true" id="always-proxy" type="checkbox" checked>&nbsp;
              <label for="always-proxy" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Only redirect embedded video to Invidious">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_onlyEmbeddedVideo__">Only redirect embedded video to Invidious</h1>
            </td>
            <td>
              <input aria-hidden="true" id="only-embed" type="checkbox" checked>&nbsp;
              <label for="only-embed" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_videoQuality__">Invidious Video Quality</h1>
      <select id="video-quality">
        <option value="">Default</option>
        <option value="hd720">720p</option>
        <option value="medium">480p</option>
        <option value="dash">DASH (Dynamic Adaptive Streaming over HTTP)</option>
      </select>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Invidious dark mode aways on">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_invidiousDarkMode__">Invidious dark mode always on</h1>
            </td>
            <td>
              <input aria-hidden="true" id="invidious-dark-mode" type="checkbox" checked>&nbsp;
              <label for="invidious-dark-mode" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_invidiousVolume__">Invidious Volume</h1>
      <input id="invidious-volume" name="invidious-volume" type="range" min="0" max="100" step="1">
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_invidiousPlayerStyle__">Invidious Player Style</h1>
      <select id="invidious-player-style">
        <option value="invidious">Invidious</option>
        <option value="youtube">YouTube</option>
      </select>
    </section>
    <section class="settings-block">
      <h1 data-localize="__MSG_invidiousSubtitles__">Invidious Subtitles - language codes (comma-separated)</h1>
      <input id="invidious-subtitles" name="invidious-subtitles" type="text">
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Invidious automatically play video on load">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_invidiousAutoplay__">Invidious automatically play video on load</h1>
            </td>
            <td>
              <input aria-hidden="true" id="invidious-autoplay" type="checkbox" checked>&nbsp;
              <label for="invidious-autoplay" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Persist Invidious preferences">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_persistInvidiousPrefs__">Persist Invidious preferences (as cookie)</h1>
            </td>
            <td>
              <input aria-hidden="true" id="persist-invidious-prefs" type="checkbox" checked>&nbsp;
              <label for="persist-invidious-prefs" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <section class="settings-block">
      <table class="option" aria-label="Proactively remove Twitter service worker">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_removeTwitterSW__">Proactively remove Twitter service worker</h1>
            </td>
            <td>
              <input aria-hidden="true" id="remove-twitter-sw" type="checkbox" checked>&nbsp;
              <label for="remove-twitter-sw" class="checkbox-label">
              </label>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
  </div>

  <div id="exceptions" class="tabcontent">
    <section class="settings-block" data-localize="__MSG_exceptionsDescription__">
      <p>
        Enter a URL or Regular Expression to be excluded from redirects.
      </p>
      <p>
        All requests for or initiating from a URL that matches your exception
        will be excluded from redirects.
      </p>
      <p>
        <b>Note -</b> Supports JavaScript regular expressions, excluding
        the enclosing forward slashes.
      </p>
    </section>
    <section class="settings-block">
      <table class="exceptions option">
        <tbody>
          <tr>
            <td>
              <h1 data-localize="__MSG_addException__">Add Exception</h1>
            </td>
          </tr>
          <tr>
            <td>
              <input id="new-exceptions-item" type="text" placeholder="URL or RegExp">
            </td>
            <td>
              <input type="radio" id="url" name="type" value="URL" checked>
              <label class="radio" for="url">URL</label>
              <input type="radio" id="regExp" name="type" value="RegExp">
              <label class="radio" for="regExp">RegExp</label>
            </td>
            <td>
              <button id="add-to-exceptions">
                <svg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'>
                  <line x1='256' y1='112' x2='256' y2='400'
                    style='fill:none;stroke:#FFF;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px' />
                  <line x1='400' y1='256' x2='112' y2='256'
                    style='fill:none;stroke:#FFF;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px' />
                </svg>
              </button>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
    <ul id="exceptions-items"></ul>
  </div>

  <script src="./options.js"></script>
  <script src="../../assets/javascript/localise.js"></script>
</body>

</html>