fwenzel / copy-shorturl

A Firefox extension to quickly create a short URL for the current page and copy it to the clipboard.
https://addons.mozilla.org/addon/copy-shorturl
Apache License 2.0
35 stars 15 forks source link

yourls support? #149

Open bpmartin20 opened 11 months ago

bpmartin20 commented 11 months ago

I like what I see of it, but any possibility of supporting an in-house yourls installation?

Ref: https://yourls.org/

fwenzel commented 11 months ago

Sure - there's a possibility this already works, if you can put everything into a GET request you can simply form a specialized URL (see screenshot)

image

If there's a specific API you think I should implement, I can do that also.

fwenzel commented 11 months ago

The code for URL shorteners is here, fwiw: https://github.com/fwenzel/copy-shorturl/blob/4efb9f1c6b43c51984c4d12513cf1dffb85840ba/src/lib/shortener.js#L11