From 49d2d778a6a7b32426aa01b9994592ca2ea00979 Mon Sep 17 00:00:00 2001 From: vyneer Date: Thu, 15 Feb 2024 18:00:50 +0300 Subject: [PATCH] feat: add an option to disable flair animations --- assets/chat/css/style.scss | 4 ++++ assets/chat/js/const.js | 1 + assets/views/embed.html | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/assets/chat/css/style.scss b/assets/chat/css/style.scss index 9b100c4e..50473741 100644 --- a/assets/chat/css/style.scss +++ b/assets/chat/css/style.scss @@ -1717,6 +1717,10 @@ hr { .pref-autocompletehelper #chat-auto-complete.active { display: block; } +.pref-disableflairanimations a.user, +.pref-disableflairanimations span.user { + animation: none !important; +} /* OverlayScrollbars theme */ .dgg-scroller-theme.os-scrollbar-horizontal { diff --git a/assets/chat/js/const.js b/assets/chat/js/const.js index 65f43de2..65f29be6 100644 --- a/assets/chat/js/const.js +++ b/assets/chat/js/const.js @@ -133,6 +133,7 @@ const settingsdefault = new Map( hidensfl: false, fontscale: 'auto', censorbadwords: false, + disableflairanimations: false, }), ); diff --git a/assets/views/embed.html b/assets/views/embed.html index 9665edd7..30ca2642 100644 --- a/assets/views/embed.html +++ b/assets/views/embed.html @@ -147,6 +147,12 @@

Messages

+
+ +

Notifications