summaryrefslogtreecommitdiffstats
path: root/toolkit/content/aboutUrlClassifier.xhtml
blob: 333ef429edf87bd67c08d740d563ce5ca8d44af9 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE html [
<!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> %htmlDTD;
]>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Security-Policy" content="default-src chrome:; object-src 'none'" />
  <meta name="color-scheme" content="light dark" />
  <title data-l10n-id="url-classifier-title"></title>
  <link rel="stylesheet" href="chrome://global/content/aboutUrlClassifier.css" type="text/css"/>
  <link rel="localization" href="toolkit/about/url-classifier.ftl"/>
  <script src="chrome://global/content/aboutUrlClassifier.js"></script>
</head>

<body class="wide-container">
  <h1 data-l10n-id="url-classifier-title"></h1>
  <div id="search">
    <h2 class="major-section" data-l10n-id="url-classifier-search-title"></h2>
    <div class="options">
      <table id="search-table">
        <tbody>
        <tr>
          <th class="column" data-l10n-id="url-classifier-search-input"></th>
          <td>
            <input id="search-input" type="text" value=""/>
          </td>
        </tr>
        <tr>
          <th class="column" data-l10n-id="url-classifier-search-listType"></th>
          <td>
            <select id="search-listtype">
              <option value="0">Blocklist</option>
              <option value="1">Entitylist</option>
            </select>
          </td>
        </tr>
        <tr>
          <th class="column" data-l10n-id="url-classifier-search-features"></th>
          <td id="search-features"></td>
        </tr>
        <tr>
          <th></th>
          <td>
            <button id="search-button" data-l10n-id="url-classifier-search-btn"></button>
          </td>
        </tr>
        </tbody>
      </table>
      <p id="search-error-message"></p>
      <h2 class="major-section" id="result-title" data-l10n-id="url-classifier-search-result-title"></h2>
      <table id="result-table">
        <tr>
          <td>
            <input id="search-input" type="text" value=""/>
          </td>
        </tr>
      </table>
    </div>
  </div>
  <div id="provider">
    <h2 class="major-section" data-l10n-id="url-classifier-provider-title"></h2>
    <table id="provider-table">
      <thead>
        <tr id="provider-head-row">
          <th id="col-provider" data-l10n-id="url-classifier-provider"></th>
          <th id="col-lastupdatetime" data-l10n-id="url-classifier-provider-last-update-time"></th>
          <th id="col-nextupdatetime" data-l10n-id="url-classifier-provider-next-update-time"></th>
          <th id="col-backofftime" data-l10n-id="url-classifier-provider-back-off-time"></th>
          <th id="col-lastupdateresult" data-l10n-id="url-classifier-provider-last-update-status"></th>
          <th id="col-update" data-l10n-id="url-classifier-provider-update-btn"></th>
        </tr>
      </thead>
      <tbody id="provider-table-body">
        <!-- data is generated in javascript -->
      </tbody>
    </table>
  </div>
  <div id="cache">
    <h2 class="major-section" data-l10n-id="url-classifier-cache-title"></h2>
    <div id="cache-modules" class="options">
      <button id="refresh-cache-btn" data-l10n-id="url-classifier-cache-refresh-btn"></button>
      <button id="clear-cache-btn" data-l10n-id="url-classifier-cache-clear-btn"></button>
      <br></br>
    </div>
    <table id="cache-table">
      <thead>
        <tr id="cache-head-row">
          <th id="col-tablename" data-l10n-id="url-classifier-cache-table-name"></th>
          <th id="col-negativeentries" data-l10n-id="url-classifier-cache-ncache-entries"></th>
          <th id="col-positiveentries" data-l10n-id="url-classifier-cache-pcache-entries"></th>
          <th id="col-showentries" data-l10n-id="url-classifier-cache-show-entries"></th>
        </tr>
      </thead>
      <tbody id="cache-table-body">
        <!-- data is generated in javascript -->
      </tbody>
    </table>
    <br></br>
  </div>
  <div id="cache-entries">
    <h2 class="major-section" data-l10n-id="url-classifier-cache-entries"></h2>
    <table id="cache-entries-table">
      <thead>
        <tr id="cache-entries-row">
          <th id="col-table" data-l10n-id="url-classifier-cache-table-name"></th>
          <th id="col-prefix" data-l10n-id="url-classifier-cache-prefix"></th>
          <th id="col-n-expire" data-l10n-id="url-classifier-cache-ncache-expiry"></th>
          <th id="col-fullhash" data-l10n-id="url-classifier-cache-fullhash"></th>
          <th id="col-p-expire" data-l10n-id="url-classifier-cache-pcache-expiry"></th>
        </tr>
      </thead>
      <tbody id="cache-entries-table-body">
        <!-- data is generated in javascript -->
      </tbody>
    </table>
  </div>
  <div id="debug">
    <h2 class="major-section" data-l10n-id="url-classifier-debug-title"></h2>
    <div id="debug-modules" class="options">
      <input id="log-modules" type="text" value=""/>
      <button id="set-log-modules" data-l10n-id="url-classifier-debug-module-btn"></button>
      <br></br>
      <input id="log-file" type="text" value=""/>
      <button id="set-log-file" data-l10n-id="url-classifier-debug-file-btn"></button>
      <br></br>
      <label class="toggle-container-with-text">
        <input id="js-log" type="checkbox"/>
        <span data-l10n-id="url-classifier-debug-js-log-chk"></span>
      </label>
    </div>
    <table id="debug-table">
    <tbody>
    <tr>
      <th class="column" data-l10n-id="url-classifier-debug-sb-modules"></th>
      <td id="sb-log-modules">
      </td>
    </tr>
    <tr>
      <th class="column" data-l10n-id="url-classifier-debug-modules"></th>
      <td id="cur-log-modules">
      </td>
    </tr>
    <tr>
      <th class="column" data-l10n-id="url-classifier-debug-sbjs-modules"></th>
      <td id="cur-js-log">
      </td>
    </tr>
    <tr>
      <th class="column" data-l10n-id="url-classifier-debug-file"></th>
      <td id="cur-log-file">
      </td>
    </tr>
    </tbody>
    </table>
  </div>
</body>
</html>