From 83b9833b6c472101e27c453e5d2d16112785476e Mon Sep 17 00:00:00 2001 From: Eris Date: Mon, 5 Aug 2024 13:59:56 -0700 Subject: [PATCH] profile discord emojis --- profile/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profile/script.js b/profile/script.js index 4088a60..c3e32a1 100644 --- a/profile/script.js +++ b/profile/script.js @@ -37,7 +37,10 @@ function fetchprofile() { let quote; if (typeof md !== 'undefined') { md.disable(['image']); - quote = md.render(data.quote).replace(//g, ''); + quote = md.render(data.quote) + .replace(//g, '') + .replace(/<:(\w+):(\d+)>/g, '$1') + .replace(/<a:(\w+):(\d+)>/g, '$1'); // might remove this later, will all discord emojis in general } else { // fallback for when md doenst work // figure this issue OUT