A BetterDiscord plugin that automatically replaces social media links with better embed alternatives.
- Download
EmbedFixer.plugin.js - Place it in your BetterDiscord plugins folder:
- Windows:
%appdata%\BetterDiscord\plugins - Mac:
~/Library/Application Support/BetterDiscord/plugins - Linux:
~/.config/BetterDiscord/plugins
- Windows:
- Enable the plugin in Discord settings
| Platform | Replacement |
|---|---|
| X/Twitter | fixupx.com |
| rxddit.com | |
| TikTok | tnktok.com |
| ddinstagram.com | |
| Bluesky | bsyy.app |
| Threads | fixthreads.net |
| Pixiv | phixiv.net |
| Twitch Clips | fxtwitch.tv |
| Medium | scribe.rip |
| Tumblr | tpmblr.com |
| DeviantArt | fixdeviantart.com |
| 4chan | 4channel.org |
- Giphy → direct GIF URLs
- Imgur → direct image URLs
- GitHub Gists → raw view
- Pastebin → raw text
- YouTube Shorts → regular video player
- Steam Store → SteamDB embeds
- Strips 80+ tracking parameters (utm, fbclid, gclid, igshid, etc.)
- Removes Google/Bing AMP wrappers
- Cleans Amazon URLs to just the product ASIN
- Edit Support - Fixes links when editing messages, not just sending
- Smart Edit Detection - Won't re-fix if you're reverting a link back to original
- Paywall Bypass - Wraps paywalled articles (NYT, WSJ, Bloomberg, etc.) with archive.is, removepaywall.com, or 12ft.io
- Song.link Integration - Converts Spotify, Apple Music, YouTube Music links to universal song.link URLs
Open Discord Settings → Plugins → EmbedFixer → Settings to:
- Toggle individual platforms on/off
- Choose your preferred paywall bypass service
- Enable debug logging
- Links inside code blocks are ignored
- All replacements happen before the message is sent
- Editing a message will also apply fixes (unless you're reverting)
Unit tests (requires Bun):
bun test tests/embedfixer.test.jsIntegration tests (in Discord Developer Console):
- Open Discord Developer Console (Cmd+Option+I / Ctrl+Shift+I)
- Paste contents of
tests/discord-console.js - Run
eft.start()for current channel oreft.start("CHANNEL_ID")for specific channel - Wait 6 seconds for safety warning, then tests will run
- 59 unit tests covering all URL transformations
- 58 integration test cases for real Discord message verification
- Now also fixes links when editing messages (not just sending)
- Smart edit detection: only skips re-fixing if you're reverting a fixed domain back to original
- Major performance improvement: tokenize message once instead of 7 times
- Pre-compile expensive regexes at startup instead of on every message
- Fixed song.link URL encoding to use proper encodeURIComponent
- Added type safety check for message content
- Added per-platform toggle settings - enable/disable individual fixers
- Added tracking parameter stripping (utm, fbclid, igshid, gclid, and 80+ more)
- Added AMP link removal - strips Google AMP wrapper from URLs
- Added song.link integration for Spotify, Apple Music, YouTube Music, etc.
- Added Amazon link cleaning - removes tracking garbage
- Added 12ft.io as a third paywall bypass option
- Added Steam store link embed support via SteamDB
- Completely redesigned settings panel with per-feature toggles
- Added error handling so one broken link won't stop others from being fixed
- Improved Giphy links reliability and speed
- Added protection against malicious URLs
- Fixed Pastebin links to properly show raw text
- Imgur links now correctly detect file types
- Links inside code blocks are now properly ignored
- Added paywall bypass service selection (Archive.is, RemovePaywall.com)
- Fixed compatibility issues with some Discord versions
- YouTube Shorts links now properly convert to regular videos
- Added debug mode setting
- Initial release with Twitter/X, Reddit, TikTok, Instagram, Pixiv support
- YouTube Shorts conversion