From 5529ea07271edcdd2631be6f3fe2e92bd0ceeefd Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 31 Jul 2024 15:25:46 +0000 Subject: [PATCH] make the sh filter and stuff better :3 --- html/search.ejs | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/html/search.ejs b/html/search.ejs index d298350e..1896de38 100644 --- a/html/search.ejs +++ b/html/search.ejs @@ -512,23 +512,35 @@ Web <% -const searchStrings = ["suicide", "no text to speech", "ntts", "vencord support", "murder", "how to murder"]; -if (searchStrings.some(str => q.includes(str))) { +const searchStrings = [ + "suicide", "self harm", "self-harm", "support", "murder", "how to murder", "kill myself", + "end my life", "depressed", "depression", "lonely", + "hurt myself", "selfharm", "selfharm", "dying", "want to die", + "kill", "die", "family problems", "family issues", "abuse", + "domestic violence", "abusive parents", "family conflict", + "estranged", "disowned", "run away", "runaway" +]; +if (searchStrings.some(str => q.toLowerCase().includes(str))) { %>
-

You are not alone

-

- if you or somebody you know is having a bad time, talk to somebody today. -

-

- if you are from the US, call 988. if you arent see this url. -

dont worry, ur not alone <3 and you are really important btw! -

- -
- <% } %> +❤️
+

Ur not alone

+

+ If you're having a tough time or know someone who is, reaching out and talking to someone can really help. +

+

+ In the US? Call 988 for support. Not in the US? Check out this link for worldwide help. +

+

+ LGBTQ+ and need someone to talk to? Try the Trevor Project at 1-866-488-7386 or text START to 678-678. For more options, IMAlive is also available. +

+

+ Remember, ur not alone. u matter, and there's always someone who cares. and you are really important btw! ❤️ +

+ +<% } %> + <% if (!tab) { %>