~vono22/cookiekeeper/1.9.0

« back to all changes in this revision

Viewing changes to cookiekeeper/chrome/content/preferences.html

  • Committer: Yvon Tanguy
  • Date: 2016-03-23 15:58:31 UTC
  • Revision ID: vono22@yahoo.fr-20160323155831-9ff8oe52crtm4dav
- HTML Prefs: Add the permissions panel.
- HTML Prefs: Add Flash player pref to the main tab.
- HTML Prefs: Add option to use the new HTML panel only (TODO add it to the XUL preferences too)
- Minor fix (mainly cookies permissions)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
  <link href="chrome://cookiekeeper/skin/preferences_tab.css" media="screen" rel="stylesheet" type="text/css">
20
20
  <link rel="icon" href="chrome://cookiekeeper/skin/cookie24.png">
21
21
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/common.js"></script>
22
 
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/html_dyn_table.js"></script>
 
22
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/ck.html.dyn_table.js"></script>
 
23
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/ck.permissions.js"></script>
23
24
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/preferences.js"></script>
24
25
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/prefs.pcookies.js"></script>
 
26
  <script type="application/javascript;version=1.8" src="chrome://cookiekeeper/content/prefs.permissions.js"></script>
25
27
</head>
26
28
<body id="cookiekeeper_body_preferences" onload="ckPrefs.init();" onunload="ckPrefs.uninit();">
27
29
 
35
37
    <li id="div_tab3_protected_cookies">
36
38
      <span id="a_tab3" onclick="ckPrefs.showTab(3);" class="tab_link">Permissions</span>
37
39
    </li>
38
 
    <li id="div_tab4_protected_cookies">
39
 
      <span id="a_tab4" onclick="ckPrefs.showTab(4);" class="tab_link">Flash</span>
40
 
    </li>
41
 
    <li id="div_tab5_browser_prefs">
42
 
      <span id="a_tab5" onclick="ckPrefs.showTab(5);" class="tab_link">Browser</span>
 
40
    <li id="div_tab4_browser_prefs">
 
41
      <span id="a_tab4" onclick="ckPrefs.showTab(4);" class="tab_link">Browser</span>
43
42
    </li>
44
43
  </ul>
45
44
 
46
 
 
47
45
  <div id="div_content_ck" class="div_prefs_content">
48
46
    <span class="tab_title">CookieKeeper</span>
49
47
    <br/>
50
 
    <hr><br/>
 
48
    <hr class="hr_title"><br/>
51
49
 
52
50
    <div class="div_cb_block">
53
51
      <span class="checkbox_block_title" data-l10n-id="ck.span.ondemand">On demand</span>
79
77
 
80
78
    <div class="div_cb_block">
81
79
      <span class="checkbox_block_title" data-l10n-id="ck.span.misc">Misc</span>
 
80
      <input type="checkbox" name="cbKeepFlashPlayerSettings" value="extensions.cookiekeeper.lso.always_keep_main_settings">
 
81
        <a  href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html"
 
82
            data-l10n-id-href="ck.cb.misc.lso_keep_main_settings_url"
 
83
            data-l10n-id="ck.cb.misc.lso_keep_main_settings">
 
84
          Never delete the Flash Player main settings cookie.
 
85
        </a>
 
86
        <br/>
82
87
      <input type="checkbox" name="cbWarnMozPref" value="extensions.cookiekeeper.warn_moz_pref">
83
88
        <span data-l10n-id="ck.cb.misc.warn_browser_prefs">Show an alert if your browser preferences are set to delete or refuse cookies.</span><br/>
84
89
      <input type="checkbox" name="cbWarnProtSession" value="extensions.cookiekeeper.warn_prot_session">
89
94
        <input type="checkbox" name="cbNoAustralisUI" value="extensions.cookiekeeper.no_australis_ui">
90
95
          <span data-l10n-id="ck.cb.misc.no_australis_ui" data-l10n-id-tooltiptext="ck.cb.misc.no_australis_ui.tooltip">Do not use the australis panel, use classical menu instead.</span><br/>
91
96
      </div>
 
97
      <input type="checkbox" name="cbUseHTMLPrefs" value="extensions.cookiekeeper.use_html_prefs">
 
98
        <span data-l10n-id="ck.cb.misc.use_html_prefs">Use the HTML version of the preferences panel.</span><br/>
 
99
 
92
100
    </div>
93
101
 
94
102
  </div>
96
104
  <div id="div_content_prot" class="div_prefs_content">
97
105
    <span class="tab_title">Protections</span>
98
106
    <br/>
99
 
    <hr><br/>
 
107
    <hr class="hr_title"><br/>
100
108
    <!-- type, domain, name, path, exists -->
101
109
    <div id="div_table_prot" class="div_table_scroll">
102
110
      <table id="pcookies_table" class="table_scroll">
103
 
        <thead id="pcookies_table_head" class="table_scroll_head">
 
111
        <thead id="pcookies_thead" class="table_scroll_head">
104
112
          <tr id="pcookies_header_tr" class="table_scroll_header_row">
105
113
            <th id="pcookies_th_type"
106
114
                class="table_scroll_cellheader table_scroll_cellheader_first"
107
 
                onclick="gCookieKeeperProtItemsHTML.onSort(event);"
108
115
                data-l10n-id="ck.th.pc.type">
109
116
              Type
110
117
            </th>
111
118
            <th id="pcookies_th_domain"
112
119
                class="table_scroll_cellheader"
113
 
                onclick="gCookieKeeperProtItemsHTML.onSort(event);"
114
120
                data-l10n-id="ck.th.pc.domain">
115
121
              Domain
116
122
            </th>
117
123
            <th id="pcookies_th_name"
118
124
                class="table_scroll_cellheader"
119
 
                onclick="gCookieKeeperProtItemsHTML.onSort(event);"
120
125
                data-l10n-id="ck.th.pc.name">
121
126
              Name
122
127
            </th>
123
128
            <th id="pcookies_th_path"
124
129
                class="table_scroll_cellheader"
125
 
                onclick="gCookieKeeperProtItemsHTML.onSort(event);"
126
130
                data-l10n-id="ck.th.pc.path">
127
131
              Path
128
132
            </th>
129
133
            <th id="pcookies_th_exists"
130
134
                class="table_scroll_cellheader table_scroll_cellheader_last"
131
 
                onclick="gCookieKeeperProtItemsHTML.onSort(event);"
132
135
                data-l10n-id="ck.th.pc.exists"
133
136
                data-l10n-id-tooltiptext="ck.th.pc.exists.tooltip">
134
137
              Exists
151
154
  <div id="div_content_perm" class="div_prefs_content">
152
155
    <span class="tab_title">Permissions</span>
153
156
    <br/>
154
 
    <hr><br/>
 
157
    <hr class="hr_title"><br/>
155
158
 
156
159
    <span data-l10n-id="ck.span.perms.notice"></span>
157
160
    <br/><br/>
158
161
    <span data-l10n-id="ck.span.perms.addresse">Address of website:</span>
159
162
    <br/>
160
 
    <input id="perm_input_address" type="text" />
 
163
    <input id="perm_input_address" type="text" onkeyup="gCookieKeeperPermissionsHTML.onInputChange();" />
161
164
    <br/>
162
 
    <button type="button" disabled data-l10n-id="ck.button.perms.block">Block</button>
163
 
    <button type="button" disabled data-l10n-id="ck.button.perms.allow">Allow</button>
164
 
    <button type="button" disabled data-l10n-id="ck.button.perms.allow_session">Allow for session</button>
 
165
    <button id="perm_button_block"   type="button" disabled data-l10n-id="ck.button.perms.block">Block</button>
 
166
    <button id="perm_button_allow"   type="button" disabled data-l10n-id="ck.button.perms.allow">Allow</button>
 
167
    <button id="perm_button_session" type="button" disabled data-l10n-id="ck.button.perms.allow_session">Allow for session</button>
165
168
    <br/>
166
169
 
167
170
    <div id="perm_div_table" class="div_table_scroll">
168
171
      <table id="perm_table" class="table_scroll">
169
172
        <thead id="perm_thead" class="table_scroll_head">
170
173
          <tr id="perm_header_tr" class="table_scroll_header_row">
171
 
            <th id="perm_th_site" class="table_scroll_cellheader table_scroll_cellheader_first" data-l10n-id="ck.th.perms.site">Site</th>
172
 
            <th id="perm_th_status" class="table_scroll_cellheader table_scroll_cellheader_last" data-l10n-id="ck.th.perms.status">Status</th>
 
174
            <th id="perm_th_site"
 
175
                class="table_scroll_cellheader table_scroll_cellheader_first"
 
176
                data-l10n-id="ck.th.perms.site">Site</th>
 
177
            <th id="perm_th_status"
 
178
                class="table_scroll_cellheader table_scroll_cellheader_last"
 
179
                data-l10n-id="ck.th.perms.status">Status</th>
173
180
          </tr>
174
181
        </thead>
175
182
        <tbody id="perm_tbody" class="table_scroll_body">
176
183
        </tbody>
177
184
      </table>
 
185
      <menu type="context" id="perm_menu_context">
 
186
        <menuitem id="perm_menuitem_allow"
 
187
                  label="Allow"
 
188
                  data-l10n-id-label="ck.button.perms.allow"
 
189
                  onclick="gCookieKeeperPermissionsHTML.onContextMenu(event);" ></menuitem>
 
190
        <menuitem id="perm_menuitem_block"
 
191
                  label="Block"
 
192
                  data-l10n-id-label="ck.button.perms.block"
 
193
                  onclick="gCookieKeeperPermissionsHTML.onContextMenu(event);" ></menuitem>
 
194
        <menuitem id="perm_menuitem_session"
 
195
                  label="Allow for session"
 
196
                  data-l10n-id-label="ck.button.perms.allow_session"
 
197
                  onclick="gCookieKeeperPermissionsHTML.onContextMenu(event);" ></menuitem>
 
198
        <menuitem id="perm_menuitem_remove"
 
199
                  label="Remove"
 
200
                  data-l10n-id-label="ck.menu.perms.remove"
 
201
                  onclick="gCookieKeeperPermissionsHTML.onContextMenu(event);" ></menuitem>
 
202
        <menuitem id="perm_menuitem_copy"
 
203
                  label="Copy domain"
 
204
                  data-l10n-id-label="ck.menu.perms.copy"
 
205
                  onclick="gCookieKeeperPermissionsHTML.onContextMenu(event);" ></menuitem>
 
206
      </menu>
178
207
    </div>
179
 
    <button type="button" disabled data-l10n-id="ck.button.perms.remove">Remove</button>
180
 
    <button type="button" disabled data-l10n-id="ck.button.perms.remove_all">Remove All</button>
181
 
 
182
 
  </div>
183
 
 
184
 
  <div id="div_content_flash" class="div_prefs_content">
185
 
    <span class="tab_title">Flash cookies</span>
186
 
    <br/>
187
 
    <hr><br/>
 
208
    <button id="perm_button_remove"     type="button" disabled data-l10n-id="ck.button.perms.remove">Remove</button>
 
209
    <button id="perm_button_remove_all" type="button" disabled data-l10n-id="ck.button.perms.remove_all">Remove All</button>
 
210
 
188
211
  </div>
189
212
 
190
213
  <div id="div_content_browser" class="div_prefs_content">
191
214
    <span class="tab_title">Browser</span>
192
215
    <br/>
193
 
    <hr><br/>
 
216
    <hr class="hr_title"><br/>
194
217
  </div>
195
218
</body>
196
219
</html>