Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /*This script allows me to paste URL's into drafts to look at later in google chrome
  2. This removes the "format://" from the URL */
  3.  
  4. var x = draft.content
  5. x = x.split("//") //The actual separation returns {format:,url}
  6. draft.defineTag("split",x[1]) //enables the url to be added to url code
  7.  
  8.  
  9. /*The Following is entered into a URL Action
  10.  
  11. googlechrome://[split] - referencing the split tag we created earlier. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement