first commit yerrrrr
This commit is contained in:
commit
fb0fe12026
|
@ -0,0 +1,13 @@
|
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
@ -0,0 +1,4 @@
|
|||
# element-web-patches
|
||||
|
||||
im too lazy to write something here right now
|
||||
manually patch ur files with `patch <file> <patch>`
|
|
@ -0,0 +1,32 @@
|
|||
--- ./SlashCommands.tsx.orig 2024-03-29 11:54:30.219000000 -0400
|
||||
+++ ./SlashCommands.tsx 2024-04-04 02:07:24.491092988 -0400
|
||||
@@ -68,6 +68,29 @@
|
||||
|
||||
export const Commands = [
|
||||
new Command({
|
||||
+ command: "greentext",
|
||||
+ args: "<message>",
|
||||
+ description: _td("pretend you're on an imageboard"),
|
||||
+ 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, "<br />>");
|
||||
+
|
||||
+ return success(ContentHelpers.makeHtmlMessage(
|
||||
+ plainGreentext + "\n" + normalText,
|
||||
+ `<font color="#789922">${htmlGreentext}</font><br/>${normalText}`,
|
||||
+ ));
|
||||
+ },
|
||||
+ category: CommandCategories.messages,
|
||||
+ }),
|
||||
+
|
||||
+ new Command({
|
||||
command: "spoiler",
|
||||
args: "<message>",
|
||||
description: _td("slash_command|spoiler"),
|
Loading…
Reference in New Issue