Wraps URLs with angle brackets (<https://example.com>) when pasting into discord to avoid link embeds
Wraps URLs with angle brackets (<https://example.com>) when pasting into discord to avoid link embeds
*.user.js
), so click the "Install" button to install it. If it doesn't, copy the entire contents of the script into the Tampermonkey script editor (make sure you save).If you don't want to use this script anymore, you can uninstall it anytime.
There are a few settings you can configure:
const CONFIG = {
replaceStandaloneLinks: true, // will affect "https://stackoverflow.com", but not "check out https://stackoverflow.com"; can be true or false; default: true
replaceLinksInMessage: true, // will affect "check out https://stackoverflow.com", but not "https://stackoverflow.com"; can be true or false; default: true
linkRegexProvider: "discord", // discord doesn't parse links perfectly on the frontend; can be "discord" or "custom"; default: "discord"
ignoreCaseInLink: true, // discord doesn't treat HTTPS as a valid link, unless you wrap in <>; can be false or true; default true
};
Note that "replaceStandaloneLinks" and "replaceLinksInMessage" are not mutually exclusive. When both are true
(the default setting), links will be affected regardless of if they're the entire clipboard or inside of the clipboard.
To turn off one or both of these, replace true
with false
.
Please file bugs under the Issues tab.