1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 10:06:54 +00:00
* 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:
SirStendec 2019-08-06 15:39:45 -04:00
parent 9ab57897ef
commit 3583dd8fe7
6 changed files with 228 additions and 23 deletions

View file

@ -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'