Skip to content

Instantly share code, notes, and snippets.

@viticci
Last active May 17, 2019 13:34
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save viticci/96a3b22976951a420827 to your computer and use it in GitHub Desktop.
Save viticci/96a3b22976951a420827 to your computer and use it in GitHub Desktop.
An action menu for Launch Center Pro, triggered via JavaScript
javascript:window.location= // Open URL
'launchpro://?url='+encodeURIComponent( // Link LCP to itself, encode
'launchpro://?url=[list:URL: ' +location.href+' // Create list
|🔵 Tweetbot=tweetbot://viticci/post?text={{'+location.href+'}} // Tweetbot action
|📌 Pinswift=pinswift://x-callback-url/add?url={{'+location.href+'}} // Pinswift action
|✅ To Check Out=drafts://x-callback-url/create?text={{'+location.href+'}}&action={{Stuff To Check Out}} //Drafts action
|🔴 Reminder=fantastical2://parse?sentence={{'+location.href+'}}&reminder=1 // Fantastical action
|🔒 Open In 1Password=op'+location.href+' // 1Password action
|🔗 Clean Link=clean-links://x-callback-url/clean?url={{'+location.href+'}} // Clean Links action
]') // Close list and encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment