aboutsummaryrefslogtreecommitdiff
path: root/html/preferences_panel/preferences_panel.html
blob: 3a0ad7a7051a4e0caf84160eeab42fe7c1fde3d8 (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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<!-- /**
 * GNU LibreJS - A browser add-on to block nonfree nontrivial JavaScript.
 * *
 * Copyright (C) 2011, 2012, 2014 Loic J. Duros
 * Copyright (C) 2014, 2015 Nik Nyby
 * Copyright (C) 2018 Giorgio Maone
 *
 * This file is part of GNU LibreJS.
 *
 * GNU LibreJS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * GNU LibreJS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GNU LibreJS.  If not, see <http://www.gnu.org/licenses/>.
 */
-->
  <title>
    LibreJS preferences
  </title>
  <link rel="stylesheet" type="text/css" href="./prefs.css"/>
  <script src="/html/mobile.js"></script>
  <script type="text/javascript" src="/common/Storage.js"></script>
	<script type="text/javascript" src="pref.js"></script>
  </head>

  <body>
    <div class="libre">
        <a class="libre"
           id="ljs-settings"
           href="https://www.gnu.org/software/librejs/"
           title="LibreJS Settings">
           <h1 class="libre">LibreJS</h1>
        </a>
        <h3>Settings</h3>
    </div>
    <div id="widgets">
      <fieldset id="section-lists"><legend>Allow or block scripts matching the following URLs ("*" matches any path)</legend>
        <label>Type a new whitelist / blacklist entry:</label>
        <div id="new-site">
          <input type="text" id="site" value="" placeholder="https://www.gnu.org/*">
          <button id="cmd-whitelist-site" class="white" title="Whitelist this site" default>Whitelist</button>
          <button id="cmd-blacklist-site" class="red" title="Blacklist this site">Blacklist</button>
        </div>
        <div id="site-error" class="error-msg"></div>
        <div id="lists">
          <div class="white list-container">
            <label>Whitelist (always allow)</label>
            <select id="white" multiple size="10"></select>
          </div>
          <div id="commands">
            <button id="cmd-delete" title="Delete">x</button>
            <button id="cmd-blacklist" title="Move to blacklist">&raquo;</button>
            <button id="cmd-whitelist" title="Move to whitelist">&laquo;</button>
          </div>
          <div class="black list-container">
            <label>Blacklist (always block)</label>
            <select id="black" multiple size="10"></select>
          </div>
        </div>
      </fieldset>

      <fieldset id="section-complaint"><legend>Complaint email defaults</legend>
        <label for="pref_subject">Subject</label>
        <input id="pref_subject" type="text"/>
        <label for="pref_body">Body</label>
        <textarea id="pref_body" rows="5"></textarea>
      </fieldset>
    </div>
  </body>
</html>