-
Notifications
You must be signed in to change notification settings - Fork 2
/
options.html
349 lines (349 loc) · 16.8 KB
/
options.html
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>AutoPatchWorkMod</title>
<link href='css/options.css' rel='stylesheet' type='text/css'>
<script type='text/javascript' src='scripts/common.js'></script>
<script type='text/javascript' src='scripts/storage.js'></script>
<script type='text/javascript' src='scripts/options.js'></script>
</head>
<body class='tabbox'>
<ul class='tabs' id='menu-tabs'>
<li id='menu-general' class='selected'>
<a href='#general'><span class='MSG_general'>General</span></a>
</li>
<li id='menu-filters'>
<a href='#filters'><span class='MSG_filters'>Filters</span></a>
</li>
<li id='menu-styles'>
<a href='#styles'><span class='MSG_styles'>Styles</span></a>
</li>
<li id='menu-patterns'>
<a href='#patterns'><span class='MSG_patterns'>Patterns</span></a>
</li>
<li id='menu-backup'>
<a href='#backup'><span class='MSG_backup'>Backup</span></a>
</li>
<li id='menu-news'>
<a href='#history'><span class='MSG_history'>History</span></a>
</li>
<li id='menu-about'>
<a href='#about'><span class='MSG_about'>About</span></a>
</li>
</ul>
<div id='base'>
<div id='inner-container'>
<section id='general' class='content'>
<div class='btn-group main'>
<button id='open_siteinfo_manager' class='MSG_open_siteinfo_manager'>Editor</button>
<button id='update_siteinfo' class='MSG_update_siteinfo'>Update</button>
<button id='reload_db' class='MSG_reload_db'>Reload</button>
</div>
<div>
<input type='text' id='db_location'><button id='update_wedata_location'>Save</button>
<label for='db_location' class='MSG_wedata_location'>Mini DB URL</label>
</div>
<div>
<input type='text' id='full_db_location'><button id='update_wedata_full_location'>Save</button>
<label for='full_db_location' class='MSG_wedata_full_location'>Full DB URL</label>
</div>
<div>
<input type='checkbox' id='auto_start'>
<label for='auto_start' class='MSG_auto_start'>Autostart extension</label>
</div>
<div>
<input type='checkbox' id='bar_status'>
<label for='bar_status' class='MSG_bottom_bar'>Enable inpage status bar</label>
</div>
<div>
<input type='checkbox' id='disable_in_frames'>
<label for='disable_in_frames' class='MSG_noiframe'>Disable extension in frames</label>
</div>
<div>
<input type='checkbox' id='cleanup_on_load'>
<label for='cleanup_on_load' class='MSG_cleanup_on_load'>Cleanup database on update</label>
</div>
<div>
<input type='checkbox' id='target_blank'>
<label for='target_blank' class='MSG_open_newtab'>Open new tabs from links in added pages</label>
</div>
<div>
<input type='checkbox' id='force_abs_hrefs'>
<label for='force_abs_hrefs' class='MSG_force_abs_hrefs'>Force absolute URLs for links in added pages</label>
</div>
<div>
<input type='checkbox' id='force_abs_srcs'>
<label for='force_abs_srcs' class='MSG_force_abs_srcs'>Force absolute URLs for images in added pages</label>
</div>
<div>
<input type='checkbox' id='check_hash'>
<label for='check_hash' class='MSG_check_hash'>Check pages for duplicates by content hash</label>
</div>
<div>
<input type='checkbox' id='change_address'>
<label for='change_address' class='MSG_change_address'>Update location URL and title on scroll</label>
</div>
<div>
<input type='checkbox' id='allow_ext_styles'>
<label for='allow_ext_styles' class='MSG_allow_ext_styles'>Allow CSS patches from external database</label>
</div>
<div>
<input type='checkbox' id='try_correct_lazy'>
<label for='try_correct_lazy' class='MSG_try_correct_lazy'>Attemt to fix lazy-loaded images</label>
</div>
<div>
<span class='mins'>400</span>
<input type='range' id='remaining_height' max='4000' min='400' step='100'>
<span class='maxs'>4000</span>
</div>
<div class='outputs'>
<label for='remaining_height' class='MSG_remaining_height'>Pixels before next page</label>
<span class='outputs' id='remaining_height_value'></span>
</div>
<div>
<input type='checkbox' id='debug_mode'>
<label for='debug_mode' class='MSG_debugmode'>Debug output</label>
</div>
</section>
<section id='filters' class='content' style='visibility: hidden; height: 100px'>
<div class='MSG_exclude_filter'>
URL filters:
</div>
<ul id='filter_list'></ul>
<select id='filter_type'>
<option class='MSG_filter_prefix' value='prefix'>prefix</option>
<option class='MSG_filter_domain' value='domain'>domain</option>
<option class='MSG_filter_regexp' value='regexp'>regexp</option>
</select>
<input type='text' id='filter_text' value=''>
<button id='add_filter' class='MSG_add'>
Add
</button>
</section>
<section id='styles' class='content' style='visibility: hidden; height: 100px'>
<div class='MSG_separator_style'>
Page separator and statusbar styles:
</div>
<textarea id='css_text' spellcheck='false'></textarea>
<div class='buttons'>
<button id='apply_css' class='MSG_save'>
Save
</button>
</div>
<div class='buttons'>
<button id='reset_css' class='MSG_reset'>
Reset
</button>
</div>
</section>
<section id='custompatterns' class='content' style='visibility: hidden; height: 100px'>
<div class='MSG_siteinfo_patterns'>
Custom SITEINFO patterns:
</div>
<textarea id='custom_patterns' spellcheck='false'></textarea>
<div class='buttons'>
<button id='apply_custom_patterns' class='MSG_save'>
Save
</button>
</div>
<div class='buttons'>
<button id='reset_custom_patterns' class='MSG_reset'>
Reset
</button>
</div>
</section>
<section id='backup' class='content' style='visibility: hidden; height: 100px'>
<div class='MSG_backup_preferences'>
Backup preferences:
</div>
<textarea id='backup_field' spellcheck='false'></textarea>
<div class='buttons'>
<button id='save_backup' class='MSG_save'>
Save
</button>
</div>
<div class='buttons'>
<button id='reset_backup' class='MSG_reset'>
Reset
</button>
</div>
</section>
<section id='news' class='content' style='visibility: hidden; height: 100px'>
<h4>Version 1.9.7</h4>
<ul>
<li>
Autostart option.
</li>
<li>
Links target rewriting option.
</li>
<li>
Site filters by RegExps, prefixes and domains.
</li>
<li>
SITEINFO updater and editor.
</li>
<li>
Instant search, editing and disabling of rules and internal auto-pagerizing in SITEINFO editor.
</li>
<li>
Option to disable extension in IFRAMEs.
</li>
<li>
Custom CSS for extension's page separator and statusbar.
</li>
<li>
Custom SITEINFO patterns in JSON format.
</li>
<li>
Option to update location's URL on scroll.
</li>
<li>
Option to change how many pixels left before adding next page.
</li>
<li>
Debug output support.
</li>
<li>
Status bar: loading animation, toggle auto-pagerizing, show SITEINFO editor or options page.
</li>
</ul>
<h4>Version 1.9.8</h4>
<ul>
<li>
Opera 15 support.
</li>
<li>
Following local SITEINFO fields were added:
<ul><li><i>nextMask</i> - allows number auto-increments in next page address.</li>
<li><i>pageElementSelector</i> - allows next link search by selector.</li>
<li><i>nextLinkSelector</i> - allows content search by selector.</li>
<li><i>forceIframe</i> - pages loaded through temporary IFrame instead of XHR.</li>
<li><i>disableSeparator</i> - disables page separator between added pages.</li>
<li><i>forceAddressChange</i> - dynamically updates location URL.</li>
<li><i>allowScripts</i> - allows scripts inside content block of new pages.</i>
</ul>
</li>
<li>
Event properties accessible via <i>detail</i> property of <i>CustomEvent</i>-type events.
</li>
<li>
<i>detail.link</i> property of <i>AutoPatchWork.request</i> event contains element (Node type) with reference to the next page. <i>detail.norequest</i> property (Boolean type) defines whether to download page referenced in previous property (false to return blank page template).
</li>
<li>
Next page can be additionally pre-processed in <i>AutoPatchWork.load</i> event as it is available from <i>detail.htmlDoc</i> (HTMLDocument type) property of this event.
</li>
<li>
CSS selector/XPath auto-recognition for standard SITEINFO fields.
</li>
<li>
Events are targeted to <i>document</i> instead of <i>window</i>.
</li>
</ul>
<h4>Version 1.9.9</h4>
<ul>
<li>
Firefox 48 and Chrome 49 support.
</li>
<li>
In <i>AutoPatchWork.load</i> event loaded page's URL available through <i>detail.url</i> property.
</li>
<li>
<i>AutoPatchWork.append</i> event now contains <i>detail.nodes</i> and <i>detail.title</i> where first contains elements defined by <i>pageElement[Selector]</i> field and the latter title of added page.
</li>
<li>
<i>forceAddressChange</i> field enables updating of both location URL and page title.
</li>
<li>
<i>insertBefore</i> field can be set to empty in SITEINFO editor to override value from remote database.
</li>
<li>
Per site <i>forceAddressChange</i> (<i>address</i> checkbox) inverts global setting.
</li>
<li>
Following local SITEINFO fields were added:
<ul><li><i>removeElement[Selector]</i> - removes elements from current and added pages.</li><li> <i>jsPatch</i> - allows per site JavaScript patching.</li><li><i>cssPatch</i> - allows per site CSS patching.</li></ul>
</li>
<li>
Options in SITEINFO editor to disable separators, allow scripts, load pages via IFrames and update URL/title on scroll.
</li>
<li>
Options to make link <i>href</i>s and image <i>src</i>s absolute in added pages.
</li>
<li>
SITEINFO database URL can now be changed in case remote database becomes inaccessible.
</li>
<li>
SITEINFO database can be reloaded manually.
</li>
<li>
SITEINFO database can be automatically cleaned from all unused (that have no successful hits) entries on update.
</li>
</ul>
<h4>Version 1.10.0</h4>
<ul>
<li>
Reworked menu to be compact image list with translatable tooltips.
</li>
<li>
With <kbd>Shift</kbd> <i>Toggle</i> button disables the extension on current site until browser restart.
</li>
<li>
Button for refreshing incomplete (with <kbd>Shift</kbd> - all) images on a page without reloading it.
</li>
<li>
Button for retrying last failed request attempt before termination.
</li>
<li>
Following local SITEINFO fields were added:
<ul>
<li><i>prevLink, prevLinkSelector</i> - specifies previous link for switching autopaging direction.</li>
</ul>
</li>
<li>
<i>AutoPatchWork.request</i> event accepts only URL strings as <i>link</i> property.
</li>
<li>
<i>AutoPatchWork.DOMNodeInserted</i> event is disabled on the source-code level. Significantly improves performance.
</li>
</ul>
<br />* <i>All version updates include various minor bug-fixes between them.</i>
<br />
</section>
<section id='about' class='content' style='visibility: hidden; height: 100px'>
<dl>
<dt class='MSG_extension_name'>
Name:
</dt>
<dd>
AutoPatchWork Mod
</dd>
<dt class='MSG_author_name'>
Author:
</dt>
<dd>
<a href='https://github.com/Dither' target='_blank'>DitherSky</a>
</dd>
<dt class='MSG_thank_you'>
Thanks:
</dt>
<dd>
<a href='http://os0x.heteml.jp/' target='_blank'>os0x</a> (original AutoPatchWork)
</dd>
<dd>
<a href='http://autopagerize.net/' target='_blank'>AutoPagerize</a>
</dd>
<dt class='MSG_license'>
License:
</dt>
<dd>
<a href='http://creativecommons.org/licenses/MIT/' target='_blank'>The MIT license</a>
</dd>
</dl>
</section>
</div>
</div>
<!--base-->
</body>
</html>