Skip to content

Commit

Permalink
connect-page: add flameshot too
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Jan 11, 2025
1 parent 278258e commit fb13969
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions copyparty/web/svcs.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,22 @@ <h1>ishare</h1>



<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>
<a href="#" id="repl">π</a>
<script>
Expand Down
2 changes: 1 addition & 1 deletion copyparty/web/svcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function add_dls() {
oa[a].setAttribute('id', 'tx' + a);
oa[a].parentNode.insertBefore(o, oa[a]);
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);
}
}
Expand Down

0 comments on commit fb13969

Please sign in to comment.