Plugin
NoMaskedUrlPaste
Pasting a link while having text selected will not paste as masked URL
1
import { Devs } from "@utils/constants.js";2
import definePlugin from "@utils/types";3
4
export default definePlugin({5
name: "NoMaskedUrlPaste",6
authors: [Devs.CatNoir],7
description: "Pasting a link while having text selected will not paste as masked URL",8
tags: ["Chat", "Utility"],9
patches: [10
{11
find: ".selection,preventEmojiSurrogates:",12
replacement: {13
match: /if\(null!=\i.selection&&\i.\i.isExpanded\(\i.selection\)\)/,14
replace: "if(false)"15
}16
}17
],18
});19