Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 1.08 KB

README.md

File metadata and controls

11 lines (8 loc) · 1.08 KB

Alfred: Shorten URLS with YOURLS

An Alfred Workflow for shortening URLs via a self-hosted YOURLS installation. Shorten clipboard content with YOURLS, then copy short URL to clipboard.

This is based on the bash script found here. There is probably a better way to do this, but I don't actually know how to code. This works for my purposes, maybe you will get some use out of it, too.

SETUP

Fill out the configuration settings (or edit the "Run Script" utility). You will need to insert the url of your YOURLS installation and your signature token, which you find by going to your Admin Interface and clicking on "Tools". The workflow itself works via the keyword "short", though you can change that of course, and it looks for the URL in your clipboard. The resulting short URL is then again copied to your clipboard. Optionally you can type something after the keyword, so something like "short newlink" would shorten whatever URL you have copied to "http://your.site/newlink" and copy that to your clipboad.

LICENSE

Do whatever you want with this.