tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

config.xhtml (4396B)


      1 <?xml version="1.0"?>
      2 
      3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      4   - License, v. 2.0. If a copy of the MPL was not distributed with this
      5   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      6 
      7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      8 
      9 <html xmlns="http://www.w3.org/1999/xhtml">
     10  <head>
     11    <meta name="viewport" content="width=device-width; user-scalable=0" />
     12    <title>about:config</title>
     13    <meta charset="UTF-8" />
     14 
     15    <link rel="localization" href="mobile/android/aboutConfig.ftl" />
     16    <link
     17      rel="stylesheet"
     18      href="chrome://geckoview/skin/config.css"
     19      type="text/css"
     20    />
     21    <script
     22      type="text/javascript"
     23      src="chrome://geckoview/content/config.js"
     24    ></script>
     25  </head>
     26 
     27  <body
     28    onload="NewPrefDialog.init(); AboutConfig.init();"
     29    onunload="AboutConfig.uninit();"
     30  >
     31    <div class="toolbar">
     32      <div class="toolbar-container">
     33        <div
     34          id="new-pref-toggle-button"
     35          onclick="NewPrefDialog.toggleShowHide();"
     36        />
     37 
     38        <div class="toolbar-item" id="filter-container">
     39          <div id="filter-search-button" />
     40          <input
     41            id="filter-input"
     42            type="search"
     43            data-l10n-id="config-toolbar-search"
     44            value=""
     45            oninput="AboutConfig.bufferFilterInput();"
     46          />
     47        </div>
     48      </div>
     49    </div>
     50 
     51    <div id="content" ontouchstart="AboutConfig.filterInput.blur();">
     52      <div id="new-pref-container">
     53        <li class="pref-item" id="new-pref-item">
     54          <div class="pref-item-line">
     55            <input
     56              class="pref-name"
     57              id="new-pref-name"
     58              type="text"
     59              data-l10n-id="config-new-pref-name"
     60              onfocus="NewPrefDialog.focusName(event);"
     61              oninput="NewPrefDialog.updateName(event);"
     62            />
     63            <select
     64              id="new-pref-type"
     65              onchange="NewPrefDialog.type = event.target.value;"
     66            >
     67              <option
     68                value="boolean"
     69                data-l10n-id="config-new-pref-value-boolean"
     70              ></option>
     71              <option
     72                value="string"
     73                data-l10n-id="config-new-pref-value-string"
     74              ></option>
     75              <option
     76                value="int"
     77                data-l10n-id="config-new-pref-value-integer"
     78              ></option>
     79            </select>
     80          </div>
     81 
     82          <div class="pref-item-line" id="new-pref-line-boolean">
     83            <input
     84              class="pref-value"
     85              id="new-pref-value-boolean"
     86              disabled="disabled"
     87            />
     88            <div
     89              class="pref-button toggle"
     90              onclick="NewPrefDialog.toggleBoolValue();"
     91              data-l10n-id="config-pref-toggle-button"
     92            ></div>
     93          </div>
     94 
     95          <div class="pref-item-line" id="new-pref-line-input">
     96            <input
     97              class="pref-value"
     98              id="new-pref-value-string"
     99              data-l10n-id="config-new-pref-string"
    100            />
    101            <input
    102              class="pref-value"
    103              id="new-pref-value-int"
    104              data-l10n-id="config-new-pref-number"
    105              type="number"
    106            />
    107          </div>
    108 
    109          <div class="pref-item-line">
    110            <div
    111              class="pref-button cancel"
    112              id="negative-button"
    113              onclick="NewPrefDialog.hide();"
    114              data-l10n-id="config-new-pref-cancel-button"
    115            ></div>
    116            <div
    117              class="pref-button create"
    118              id="positive-button"
    119              onclick="NewPrefDialog.create(event);"
    120              data-l10n-id="config-new-pref-create-button"
    121            ></div>
    122          </div>
    123        </li>
    124      </div>
    125 
    126      <div id="prefs-shield"></div>
    127 
    128      <ul id="prefs-container" />
    129 
    130      <div id="loading-container"></div>
    131    </div>
    132 
    133    <menu type="context" id="prefs-context-menu">
    134      <menuitem
    135        data-l10n-id="config-context-menu-copy-pref-name"
    136        onclick="AboutConfig.clipboardCopy('name');"
    137      ></menuitem>
    138      <menuitem
    139        data-l10n-id="config-context-menu-copy-pref-value"
    140        onclick="AboutConfig.clipboardCopy('value');"
    141      ></menuitem>
    142    </menu>
    143  </body>
    144 </html>