From 29e80e91488997e675ad6ff634a7d8cb420c4334 Mon Sep 17 00:00:00 2001 From: q Date: Sun, 15 Feb 2026 15:46:48 -0500 Subject: [PATCH] Sneed --- patches/files/greentext_command.patch_backup | 32 -------------------- 1 file changed, 32 deletions(-) delete mode 100644 patches/files/greentext_command.patch_backup diff --git a/patches/files/greentext_command.patch_backup b/patches/files/greentext_command.patch_backup deleted file mode 100644 index ce3c9ca..0000000 --- a/patches/files/greentext_command.patch_backup +++ /dev/null @@ -1,32 +0,0 @@ ---- a/src/SlashCommands.tsx -+++ b/src/SlashCommands.tsx -@@ -68,6 +68,29 @@ - - export const Commands = [ - new Command({ -+ command: "greentext", -+ args: "", -+ description: _td("4chan-like greentext arrows"), -+ runFn: function(cli, roomId, threadId, args) { -+ const texts = args.split(/\n{2,}(.+|\n+)/g); -+ const greentext = texts[0]; -+ const normalText = texts[1] || ""; -+ -+ let plainGreentext = greentext.replace(/^/g, ">"); -+ plainGreentext = plainGreentext.replace(/(?:\r\n|\r|\n)+/g, "\n>"); -+ -+ let htmlGreentext = greentext.replace(/^/g, ">"); -+ htmlGreentext = htmlGreentext.replace(/(?:\r\n|\r|\n)+/g, "
>"); -+ -+ return success(ContentHelpers.makeHtmlMessage( -+ plainGreentext + "\n" + normalText, -+ `${htmlGreentext}
${normalText}`, -+ )); -+ }, -+ category: CommandCategories.messages, -+ }), -+ -+ new Command({ - command: "spoiler", - args: "", - description: _td("slash_command|spoiler"),