Skip to content

Instantly share code, notes, and snippets.

@kjaymiller
Last active August 29, 2015 14:17
Show Gist options
  • Save kjaymiller/f5de287d721513bf0042 to your computer and use it in GitHub Desktop.
Save kjaymiller/f5de287d721513bf0042 to your computer and use it in GitHub Desktop.
Drafts 4 Open Link in Google Chrome
/*This script allows me to paste URL's into drafts to look at later in google chrome
This removes the "format://" from the URL */
var x = draft.content
x = x.split("//") //The actual separation returns {format:,url}
draft.defineTag("split",x[1]) //enables the url to be added to url code
/*The Following is entered into a URL Action
googlechrome://[split] - referencing the split tag we created earlier. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment