mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-17 03:45:25 +02:00
Fixed mention color and cleaned up css
This commit is contained in:
@ -501,9 +501,8 @@
|
||||
var lastmsg = $("#chatcontent p:last-child");
|
||||
var content = lastmsg.text().toLowerCase();
|
||||
var username_discrim = current_username_discrim.toLowerCase();
|
||||
if (content.includes("@everyone") || content.includes("@" + username_discrim)) {
|
||||
lastmsg.css( "color", "#ff5252" );
|
||||
lastmsg.css( "font-weight", "bold" );
|
||||
if (content.includes("@everyone") || content.includes("@here") || content.includes("@" + username_discrim)) {
|
||||
lastmsg.addClass( "mentioned" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user