您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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
Please file bugs under the Issues tab.
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
.