Skip to content

Commit

Permalink
feat: add an option to disable flair animations
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Feb 15, 2024
1 parent 738d642 commit 49d2d77
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/chat/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions assets/chat/js/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const settingsdefault = new Map(
hidensfl: false,
fontscale: 'auto',
censorbadwords: false,
disableflairanimations: false,
}),
);

Expand Down
6 changes: 6 additions & 0 deletions assets/views/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ <h4>Messages</h4>
<option value="2">do nothing</option>
</select>
</div>
<div class="form-group checkbox">
<label title="Disable non-GIF flair animations">
<input name="disableflairanimations" type="checkbox" /> Disable
non-GIF flair animations
</label>
</div>

<h4>Notifications</h4>
<div class="form-group checkbox">
Expand Down

0 comments on commit 49d2d77

Please sign in to comment.