-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
323 lines (294 loc) · 7.73 KB
/
about.html
File metadata and controls
323 lines (294 loc) · 7.73 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
<!--
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font: message-box;
font-size: 1rem;
box-sizing: border-box;
padding: 0;
margin: 0;
}
.setting-name {
font-size: 1rem;
}
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;
}
/* 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-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: 128px;
margin-right: 20px;
}
.setting-description {
font-size: 0.9rem;
width: 90%;
padding-left: 20px;
color: #000;
}
div.setting-description p {
margin: 0.3em -1.0em;
}
.setting-description * {
font-size: 0.9rem;
}
.setting-description a {
font-size: 0.9rem;
color: #666;
}
.setting-description em {
/* font-weight: bold !important; */
font-style: italic !important;
}
.setting-description details,
.setting-description summary {
font-size: 0.9rem;
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.9rem;
}
.setting.disabled {
color: #666;
}
.setting.disabled:hover {
background-color: #0000;
}
.setting.indent .setting-name::before {
content: "\00a0\00a0\00a0\00a0";
}
.setting-description p {
margin: 0 0 0.5em;
}
.attributions {
margin: 3em 0;
}
.attributions h1 {
font-size: 1.3em;
margin: 1.5em 0 0;
}
.attributions p {
margin: 0.3em 0;
}
</style>
<title>About Click Copy Link</title>
<link rel="shortcut icon" type="image/png" href="/icons/link48.png"/>
</head>
<body>
<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> </div>
<div class="section">
<div class="section-name">Content</div>
<div class="section-settings">
<div class="setting">
<div class="setting-name">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>
<div class="section-settings">
<div class="setting">
<div class="setting-name">Why?</div>
<div class="setting-description">
<p>
Normally, if you want to copy a link you just right click on the link
and then select "Copy Link" from the context menu.
That's easy enough, just two clicks, so why
obther with this extension?
</p>
<p>
The problem is that the context menu is rather long, and you have to scan
down the list until you find "Copy Link". To make matters worse, the
context menu is dynamic so the ordering depends on what is being shown
on the page and other extensions running on the browser.
When you are working in a state
of "flow", the act of scanning the context menut to finding "Copy Link"
takes mental effort and that breaks your state of flow.
</p>
<p>
By replace this mentally taxing way of copying links with one that is
based on physical action (Ctrl+C or shift click) that can be offloaded
to your muscle memory, you can stay in your flow state and continue
doing whatever you are working on without losing concentration.
</p>
</div>
</div>
<div class="setting">
<div class="setting-name">Advanced usage</div>
<div class="setting-description">
<details>
<summary>[Press to expand/collapse]</summary>
The <em>Middle click close</em> feature actually has nothing to
do with copying links, but it's there if you want to quick way to
close a tab with just a single mouse click.
</details>
</div>
</div>
</div>
</div>
<div>
<p>
Project source code: <a href="https://github.com/tsaost/copylink">https://github.com/tsaost/copylink</a>.
</p>
<p>
You can report bugs and make suggestions on
<a href="https://github.com/tsaost/copylink/issues">Github</a>.
But if you have some programming experince then just tinker
with the code yourself. All the code can be found on
<a href="https://github.com/tsaost/copylink">Github</a>.
You can also unzip the extension itself, which can be
found in the <code>extensions</code> subdirectory under
your Firefox profile directory.
</p>
<div class="attributions">
<h1>Attributions</h1>
<p>
Icons are taken from <a href="https://ionic.io/ionicons">Ionicons</a>.
</p>
<p>
Some code (settings.html and settings.js) from the
<a href="https://addons.mozilla.org/en-US/firefox/addon/swift-selection-search">
Swift Selection Search</a> extension by CanisLupus (Daniel Lobo)
aren used in options.js and options.html.
</p>
<p>
The hover Ctrl+C idea and a bit of code is copied from the chrome extension <a
href="https://chrome.google.com/webstore/detail/copy-link-address/kdejdkdjdoabfihpcjmgjebcpfbhepmh?hl=en">Copy
Link Address</a> by Dhruv Vemula.
</p>
</div>
</html>