59de44955ebd / twitter-to-bsky

Crosspost from Twitter/X to Bluesky and Mastodon directly in the web browser
8 stars 1 forks source link

twitter-to-bsky - crosspost from Twitter/X to Bluesky and Mastodon directly in the web browser

twitter-to-bsky is a userscript written for Tampermonkey or Violentmonkey running in desktop web browsers (Chrome/Firefox/Edge).

It allows to automatically crosspost to Bluesky and/or Mastodon when writing posts in the Twitter/X web application in a desktop browser.

While crossposting is generally considered a bad practice, in this case it makes sense, its purpose is to ease the transistion from X to Bluesky or Mastodon while there a still many users left that havn't followed on the new platform yet.

Crossposting obviously only makes sense for generic posts that e.g. link to a news article or blog post, but not for replies, mentions, DMs etc. which are Twitter/X-specific.

Features

twitter-to-bsky supports plain text posts, posts with one or several attached media files and posts containing a preview card, based on some entered URL. Note that Bluesky doesn't support videos/GIFs yet.

Setup

Install and activate either the Tampermonkey or Violentmonkey browser addon, then open this URL (the actual userscript) in the browser and allow the addon to install it as new userscript.

If you now (re-)load the Twitter/X page, it will be "enhanced" with the following new elements:

Mastodon settings

Bluesky settings

Known limitation

While the script works fine with Chrome + Violentmonkey, the combination Firefox + Violentmonkey unfortunately has issues, about every other time the script is blocked due to CSP. This does not happen when using Tampermonkey, so for Firefox it's recommended to use Tampermonkey instead.

Screenshots

Twitter/X enhanced with crosspost elements
Twitter/X enhanced with crosspost elements

Settings dialog and system notifications (Windows 11)
Settings dialog and system notifications