Skip to content

Instantly share code, notes, and snippets.

@gotofritz
Last active November 18, 2022 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gotofritz/43bbbb9019d829af803e658eb36c9bcf to your computer and use it in GitHub Desktop.
Save gotofritz/43bbbb9019d829af803e658eb36c9bcf to your computer and use it in GitHub Desktop.
// 1. Copy the gist below, and replace mastodon.social with your own instance
// 2. Go to https://rknightuk.github.io/mastodon-toot-bookmarklet/ and create your bookmarklet
// 3. Edit the bookmarklet, and replace the URL with the one from step 1
javascript:void(window.open('https://mastodon.social/share?text='+encodeURIComponent(document.title)+'%250A'+encodeURIComponent(window.location.href)+(window.getSelection().toString() ? ' %250A' + encodeURIComponent(window.getSelection().toString()): ''), '_blank','width=600,height=600,toolbar=no'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment