Mastodon Interact embedding

Enter your Mastodon account, pick your settings and click on generate. This page will generate a script to be embedded in the <head> section of your page and two HTML snippets you can insert where you want each button on your page. Also remember to download the icon files for the buttons unless you supply your own.

You can easily tweak the script after download. The settings and strings are in the beginning of the script. In the HTML snippets you can modify the size of the button in the style attribute of the <img> tag, which is set to height: 32px and change the src attribute to adjust the path to the button image. You can also adjust the fallback links, but you can't remove the <a> tags.

Mastodon handle
Language
Theme

Script

Download script

Follow Embed

Download icon

Share Embed

Download icon

Copyright (C) 2022 smpl <smpl@slamkode.ml>

Source code