mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 10:06:54 +00:00
4.8.0
* Added: Chat > Actions > User Context. Define custom actions that appear in a context menu upon right-clicking a username in chat. * Fixed: Custom color for chat highlights in dark theme with alternating chat background colors enabled.
This commit is contained in:
parent
9ab57897ef
commit
3583dd8fe7
6 changed files with 228 additions and 23 deletions
|
@ -256,7 +256,6 @@ export default class ChatLine extends Module {
|
|||
setTimeout(() => this.WhisperLine.forceUpdate());
|
||||
});
|
||||
|
||||
|
||||
this.ChatLine.ready(cls => {
|
||||
const old_render = cls.prototype.render;
|
||||
|
||||
|
@ -419,7 +418,8 @@ other {# messages were deleted by a moderator.}
|
|||
className: 'chat-line__username notranslate',
|
||||
role: 'button',
|
||||
style: { color },
|
||||
onClick: this.ffz_user_click_handler
|
||||
onClick: this.ffz_user_click_handler,
|
||||
onContextMenu: t.actions.handleUserContext
|
||||
}, [
|
||||
e('span', {
|
||||
className: 'chat-author__display-name'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue