Skip to content

an Alfred Workflow for shortening URLs via a self-hosted YOURLS installation

Notifications You must be signed in to change notification settings

smoitzheim/alfred_yourls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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.

About

an Alfred Workflow for shortening URLs via a self-hosted YOURLS installation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published