mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 16:56:23 +00:00
8afcb8e4dd
Co-authored-by: v <vendicated@riseup.net>
23 lines
667 B
TypeScript
23 lines
667 B
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2023 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { Devs } from "@utils/constants.js";
|
|
import definePlugin from "@utils/types";
|
|
|
|
export default definePlugin({
|
|
name: "NoMaskedUrlPaste",
|
|
authors: [Devs.CatNoir],
|
|
description: "Pasting a link while having text selected will not paste as masked URL",
|
|
patches: [
|
|
{
|
|
find: ".selection,preventEmojiSurrogates:",
|
|
replacement: {
|
|
match: /if\(null!=\i.selection&&\i.\i.isExpanded\(\i.selection\)\)/,
|
|
replace: "if(false)"
|
|
}
|
|
}
|
|
],
|
|
});
|