Last active
August 29, 2015 14:17
-
-
Save kjaymiller/f5de287d721513bf0042 to your computer and use it in GitHub Desktop.
Drafts 4 Open Link in Google Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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