Skip to content

Instantly share code, notes, and snippets.

@kripy
Last active October 15, 2015 22:11
Show Gist options
  • Save kripy/2b71edd78973a231fd75 to your computer and use it in GitHub Desktop.
Save kripy/2b71edd78973a231fd75 to your computer and use it in GitHub Desktop.
Twitter bookmark for posting to iOS.
# I don't like using the built in Twitter shares, prefering to use my own posting format: "Title": URL.
# It's a little childish and stupid, but then, so is high school.
# Create a new Bookmark in Safari and drop in the following script.
# It will open Twitter and attempt to scrape the title and URL into the tweet.
javascript:location.href='twitter://post?message=\"'+encodeURIComponent(document.title)+'\": '+encodeURIComponent(location.href)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment