mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
connect-page: add flameshot too
This commit is contained in:
parent
278258ee9f
commit
fb13969798
|
@ -274,6 +274,22 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="os lin">
|
||||||
|
<h1>flameshot</h1>
|
||||||
|
|
||||||
|
<p>to upload screenshots using <a href="https://flameshot.org/">flameshot</a>, save this as <code>flameshot.sh</code> and run it:</p>
|
||||||
|
|
||||||
|
<pre class="dl" name="flameshot.sh">
|
||||||
|
#!/bin/bash
|
||||||
|
pw="<b>{{ pw }}</b>"
|
||||||
|
url="http{{ s }}://{{ ep }}/{{ rvp }}"
|
||||||
|
filename="$(date +%Y-%m%d-%H%M%S).png"
|
||||||
|
flameshot gui -s -r | curl -sT- "$url$filename?want=url&pw=$pw" | xsel -ib
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<a href="#" id="repl">π</a>
|
<a href="#" id="repl">π</a>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -24,7 +24,7 @@ function add_dls() {
|
||||||
oa[a].setAttribute('id', 'tx' + a);
|
oa[a].setAttribute('id', 'tx' + a);
|
||||||
oa[a].parentNode.insertBefore(o, oa[a]);
|
oa[a].parentNode.insertBefore(o, oa[a]);
|
||||||
o.setAttribute('download', oa[a].getAttribute('name'));
|
o.setAttribute('download', oa[a].getAttribute('name'));
|
||||||
o.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(oa[a].textContent));
|
o.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(oa[a].innerText));
|
||||||
clmod(o, 'txa', 1);
|
clmod(o, 'txa', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue