Skip to content

Commit d6d0d6a

Browse files
committed
copy
1 parent 99ab72a commit d6d0d6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

five-hours.htm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
</header>
66
<body>
77
<p>5 hours to kill</p>
8-
<p><a href='javascript:(function(){ const name = "callionica.copy-clicked-images"; const fn = globalThis[name]; if (fn === undefined) { const e = document.createElement("script"); e.type="module"; e.src="https://callionica.github.io/five-hours.js"; document.body.appendChild(e); } else { fn(); } })();'>Shortcut</a></p>
8+
<p>
9+
<a id="copy-clicked-image" href='javascript:(function(){ const name = "callionica.copy-clicked-images"; const fn = globalThis[name]; if (fn === undefined) { const e = document.createElement("script"); e.type="module"; e.src="https://callionica.github.io/five-hours.js"; document.body.appendChild(e); } else { fn(); } })();'>Copy clicked images</a>
10+
<a href='javascript:navigator.clipboard.writeText(document.querySelector("#copy-clicked-image").href)'>COPY</a>
11+
</p>
912
</body>

0 commit comments

Comments
 (0)