From c2d8317da10fd8e15a9da374ee53beb07b25c16a Mon Sep 17 00:00:00 2001 From: Montreal Date: Fri, 21 Jun 2024 00:01:09 +0300 Subject: [PATCH] phone, phone -low and megaphone added --- js/chatlog-parser.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/chatlog-parser.js b/js/chatlog-parser.js index b3f3b72..3063cf2 100644 --- a/js/chatlog-parser.js +++ b/js/chatlog-parser.js @@ -36,14 +36,16 @@ $(document).ready(function() { formattedText.toLowerCase().indexOf("*") >= 0 && $(this).addClass("me"); formattedText.toLowerCase().indexOf(" says:") >= 0 && $(this).addClass("white"); - formattedText.toLowerCase().indexOf(" says [low]:") >= 0 && $(this).addClass("grey"); + formattedText.toLowerCase().indexOf(" [low]:") >= 0 && $(this).addClass("grey"); formattedText.toLowerCase().indexOf(", $") >= 0 && $(this).addClass("grey"); formattedText.toLowerCase().indexOf("you have received $") >= 0 && $(this).addClass("grey"); formattedText.toLowerCase().indexOf(" whispers:") >= 0 && $(this).addClass("whisper"); formattedText.toLowerCase().indexOf(" whispers:") >= 0 && formattedText.toLowerCase().indexOf("(car)") >= 0 && $(this).addClass("carwhisper"); - formattedText.toLowerCase().indexOf(" (cellphone)") >= 0 && $(this).addClass("whisper"); + formattedText.toLowerCase().indexOf(" (phone)") >= 0 && $(this).addClass("whisper"); + formattedText.toLowerCase().indexOf(":o<") >= 0 && $(this).addClass("whisper"); + formattedText.toLowerCase().indexOf(" (phone - low)") >= 0 && $(this).addClass("whisper"); $(this).html(formattedText);