-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
485 lines (439 loc) · 13.7 KB
/
Copy pathoptions.html
File metadata and controls
485 lines (439 loc) · 13.7 KB
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
/* general formatting and layout */
body {
font: message-box;
font-size: 1rem;
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
background-color: #F9F9FA;
max-width: 1200px;
padding: 50px 30px;
margin: 0 auto;
}
body .header {
display: flex;
align-items: center;
}
body .header img {
object-fit: contain;
}
body .header h1 {
flex-grow: 1;
padding-left: 40px;
padding-right: 40px;
}
body .header h1,
body .header span {
font-size: 2rem;
}
input[type=text],
input[type=number],
input[type=button],
input[type=color],
textarea,
select {
width: 100%;
padding: 4px 4px;
border: 1px solid #ccc;
border-radius: 4px;
}
input[type=checkbox],
input[type=button],
input[type=color],
select {
cursor: pointer;
}
input:hover,
textarea:hover,
select:hover {
border: 1px solid #3399FF !important;
}
input[type=button]:disabled {
border: 1px solid #ccc !important;
cursor: auto !important;
opacity: 0.5;
}
.hidden {
display: none !important;
}
/* sections */
.section {
margin-top: 25px;
margin-bottom: 50px;
}
.collapsed-section {
margin-bottom: 0px;
}
.section-name {
padding: 5px 0px 5px 6px;
font-size: 130%;
color: #222222;
border-bottom: 1px #c6e3ff solid;
border-left: 5px #c6e3ff solid;
}
.section-name {
cursor: pointer;
}
.section-name::before {
content: "\00a0▽\00a0\00a0";
font-size: 85%;
}
.collapsed-section .section-name::before {
content: "\00a0▷\00a0\00a0";
}
.section-settings {
border-left: 5px #c6e3ff solid;
}
.collapsed-section .section-settings {
display: none;
}
.section:hover > .section-name {
color: #3399FF;
border-bottom: 1px #3399FF solid;
border-left: 5px #3399FF solid;
}
.section:hover > .section-settings {
border-left: 5px #3399FF solid;
}
/* settings */
.setting {
display: flex;
border-bottom: 1px #ddd solid;
padding: 8px;
}
.setting:hover {
background-color: #fff;
}
.setting-name {
width: 40%;
max-width: 300px;
margin-right: 20px;
}
.setting-value {
width: 30rem;
max-width: 40rem;
margin-top: 2px;
}
.setting-description {
font-size: 0.8rem;
width: 80%;
padding-left: 20px;
color: #666;
}
.setting-description * {
font-size: 0.8rem;
}
.setting-description a {
font-size: 0.8rem;
color: #666;
}
.setting-description p {
margin: 0.5em 0;
}
.setting-description em {
/* font-weight: bold !important; */
font-style: italic !important;
}
.setting-description details,
.setting-description summary {
font-size: 0.8rem;
color: #666;
}
.setting-description summary:hover {
color: #3399FF;
cursor: pointer;
}
.setting-reset {
visibility: hidden;
min-width: 65px;
}
.setting:hover .setting-reset {
visibility: visible;
}
.setting.disabled .setting-value {
font-size: 0.8rem;
}
.setting.disabled {
color: #666;
}
.setting.disabled:hover {
background-color: #0000;
}
.setting.indent .setting-name::before {
content: "\00a0\00a0\00a0\00a0";
}
/* platform/version specific elements */
.os-windows, .os-mac, .os-linux {
display: none;
}
</style>
<title>Click Copy Link Options</title>
<link rel="shortcut icon" type="image/png" href="/icons/link48.png"/>
</head>
<body>
<div id="settings">
<div class="header">
<img src="/icons/link96.png" alt="">
<h1><span style="color: #3399FF">Click Copy Link</span><br/>
<span style="font-size: 0.5em">by tsaost<span></h1>
</div>
<div class="section" id="section_options">
<div class="section-name">Options</div>
<div class="section-settings">
<div class="setting">
<div class="setting-name" style="max-width: 3rem;">Overview</div>
<div class="setting-description">
<ul>
<li>
Move the cursor over a link
and use <em>Ctrl+C</em> to copy it to the clipboard
(but if there is already a selection then Ctrl+C will
copy the selection rather than the link.)
</li>
<li>Alternatively, hold the <em>shift key</em> and then use
<em>middle mouse click</em> on the link to copy it
(this works regardless of whether or not there is a selection.)
</li>
<li>
To copy multiple links, hold the
<em>shift key</em> and then use <em>left mouse click</em> on the
link to add it to the links already copied to the clipboard.
</li>
<li>
Alternatively, select the links, then click on the
<em>click copy link toolbar icon</em>
<img src="icons/link48.png" style="width: 16px; height: 16px"> to copy
them all into the clipboard.
</li>
<li>
Last but not least, turn on the <em>Auto hover copy</em> option so that
when the cursor hover over a link longer the <em>Auto hover delay</em>
then it will be copied automatically to the clipboard.
</li>
</ul>
</div>
</div>
<div class="setting">
<div class="setting-name">Shift + middle click</div>
<div class="setting-value">
<input class="setting-input" type="checkbox" name="shiftMiddleClick">
</div>
<div class="setting-description">
When middle clicking on a link while
holding the shift key the link will be copied to the clipboard.
Normally shift + middle click will open the link in a new foreground
tab. Disable this option if you want the normal/default behavoir.
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting">
<div class="setting-name">Shift + left click</div>
<div class="setting-value">
<input class="setting-input" type="checkbox" name="shiftLeftClick">
</div>
<div class="setting-description">When left clicking on a link while
holding the shift key the link will be concatenated to the clipboard
rather than replacing it. This allows you to copy several links to the
clipboard without having to copy and pasting them individually.
Normally shift + left click will open the link in a new window,
and shift + ctrl + left click will open the link in a new foreground
tab. Disable this option if you want the normal/default behavoir.
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting">
<div class="setting-name">Link format</div>
<div class="setting-value">
<select class="setting-input" name="linkFormat">
<option value="raw">http://raw.link.com</option>
<option value="autolink">autolink <http://autolink.com></option>
<option value="inlined">[inlined](http://inlined.com)</option>
<option value="bare">bare(http://bare.com)</option>
<option value="mixed">[mixed](https://inlined) or
<autolink></option>
<!-- option value="meta">Windows Key (Command on Mac)</option -->
</select>
</div>
<div class="setting-description">
<p>A link can be copied into the clipboard in various format,
most of which are accepted as valid
<a href="https://www.markdownguide.org/getting-started/">markdown</a>.
links.
The best choices are probably either raw (i.e., just the link)
or mixed (inlined if there is text describing the link or
autolink otherwise).
</p>
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting">
<div class="setting-name">Tab Link format</div>
<div class="setting-value">
<select class="setting-input" name="tabLinkFormat">
<option value="raw">http://raw.link.com</option>
<option value="autolink">autolink <http://autolink.com></option>
<option value="inlined">[inlined](http://inlined.com)</option>
<option value="bare">bare(http://bare.com)</option>
<option value="mixed">[mixed](https://inlined) or
<autolink></option>
<!-- option value="meta">Windows Key (Command on Mac)</option -->
</select>
</div>
<div class="setting-description">
Same as above, but the fomat is used when you choose
<em>Copy Tab URL</em> from the toolbar icon context menu.
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting">
<div class="setting-name">Clipboard copy tooltip</div>
<div class="setting-value">
<input class="setting-input" type="checkbox"
name="clipboardCopyTooltip">
</div>
<div class="setting-description">
Show a tooltip of the link copied to the clipboard.
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting indent hidden">
<div class="setting-name">Maximum tooltip</div>
<div class="setting-value">
<input class="setting-input" type="number" name="maxTooltip" min="0">
</div>
<div class="setting-description">Maximum number of characters
displayed in <em>Clipboard copy tooltip</em>
</div>
<div class="setting-reset"><input type="button" value="Default">
</div>
</div>
<div class="setting">
<div class="setting-name">Auto hover copy</div>
<div class="setting-value">
<select class="setting-input" name="autoHoverCopy">
<option value="never">Never (Off)</option>
<option value="always">Always (On)</option>
<option value="shift">Shift Key (On)</option>
<option value="control">Control Key (On)</option>
<option value="alt">Alt Key (Option on Mac)</option>
<!-- option value="meta">Windows Key (Command on Mac)</option -->
</select>
</div>
<div class="setting-description">
<p>Hover over a link, wait a bit
(long enough to see a tooltip showing the link is being copied) and
the URL of the link will be copied automatically to the clipboard.
You can set it so that <em>Auto hover copy</em> happens only
when you hold down the shift/control/alt key.
</p>
<p>
But note that shift/control/alt key detection does not work
100% of the time, and is very broken if you have Firefox's
<em>privacy.resistFingerprinting</em> set to true in
<em>about:config</em>
</p>
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting indent hidden">
<div class="setting-name">Auto Hover delay</div>
<div class="setting-value">
<input class="setting-input" type="number"
name="autoHoverDelay" min="0">
</div>
<div class="setting-description">
Number of milliseconds to delay auto hover copy.
If after the delay the mouse has not moved,
then the auto copy is carried out
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
</div>
</div>
<div class="section collapsed-section" id="section_advanced">
<div class="section-name">Advanced</div>
<div class="section-settings">
<div class="setting">
<div class="setting-name">Track shift/ctrl/alt via onkeyup/down</div>
<div class="setting-value">
<input class="setting-input" type="checkbox"
name="modifierKeyTracking">
</div>
<div class="setting-description">Try this option if you have
problem using Shift left/middle click or Auto Hover Copy
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting">
<div class="setting-name">Middle click close</div>
<div class="setting-value">
<select class="setting-input" name="middleClickClose">
<option value="never">Never (Off)</option>
<option value="always">Always (On)</option>
<option value="shift">Shift Key (On)</option>
<option value="control">Control Key (On)</option>
<option value="alt">Alt Key (Option on Mac)</option>
<!-- option value="meta">Windows Key (Command on Mac)</option -->
</select>
</div>
<div class="setting-description">
<p>
This feature actually has nothing to do with copying links.
But if you want to have a quick way to close a page
then you can try it.
</p>
<p>
Clicking on an area on the page that is <em>NOT</em> a link with
the middle mouse button will cause the page to be closed.
You can set it so that <em>Auto hover copy</em> happens only
when you hold down the shift/control/alt key.
</p>
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting">
<div class="setting-name">Debug level</div>
<div id="debugLevelContainer" class="setting-value">
</div>
<div class="setting-description">
This is for debugging the extension. Please leave it at <em>None</em>.
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting indent hidden">
<div class="setting-name">Duplicate debug console output</div>
<div class="setting-value">
<input class="setting-input" type="checkbox" name="debugDuplicate">
</div>
<div class="setting-description">
If turned on then then console message will be duplicated in
the debug output of the Browser Console.
This option is related to <em>Debug level</em>
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
<div class="setting indent hidden">
<div class="setting-name">Host name in console prefix</div>
<div class="setting-value">
<input class="setting-input" type="checkbox" name="debugHostPrefix">
</div>
<div class="setting-description">
If turned on then then console message will include the hostname
of the page. This option is related to <em>Debug level</em>
</div>
<div class="setting-reset"><input type="button" value="Default"></div>
</div>
</div>
</div>
</div>
<script src="console.js"></script>
<script src="options.js"></script>
</body>
</html>