Last active
November 18, 2022 11:08
-
-
Save gotofritz/43bbbb9019d829af803e658eb36c9bcf to your computer and use it in GitHub Desktop.
Improvement for https://rknightuk.github.io/mastodon-toot-bookmarklet/
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
// 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