1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-12 00:50:53 +00:00
* Added: "Copy Message" chat action for copying a message to your clipboard.
* Added: Setting to pause the player by clicking on it. This is disabled by default, and the pause happens after half a second to avoid pausing as part of a double-click.
* Added: Setting to clear the emote menu's search when closing it.
* Added: Setting to hide the "Elevate Your Message" button in the chat input field.
* Changed: Remove code related to channel hosting.
* Fixed: Do not attempt to load FFZ on `gql` or `passport` subdomains.
* Fixed: Channel leader-boards not being hidden on channels within a specific experiment.
This commit is contained in:
SirStendec 2022-10-07 15:12:15 -04:00
parent bc0eab4409
commit 8cd6545556
16 changed files with 185 additions and 660 deletions

View file

@ -201,7 +201,7 @@ export default class ChatHook extends Module {
this.ChatController = this.fine.define(
'chat-controller',
n => n.hostingHandler && n.onRoomStateUpdated,
n => n.parseOutgoingMessage && n.onRoomStateUpdated && n.renderNotifications,
Twilight.CHAT_ROUTES
);
@ -656,6 +656,15 @@ export default class ChatHook extends Module {
component: 'setting-check-box'
}
});
this.settings.add('chat.input.show-elevate-your-message', {
default: true,
ui: {
path: 'Chat > Input >> Appearance',
title: 'Allow the "Elevate Your Message" button to be displayed.',
component: 'setting-check-box'
}
});
}
get currentChat() {
@ -941,6 +950,9 @@ export default class ChatHook extends Module {
this.updateMentionCSS();
});
this.chat.context.getChanges('chat.input.show-elevate-your-message', val =>
this.css_tweaks.toggleHide('elevate-your-message', ! val));
this.updateChatCSS();
this.updateColors();
this.updateLineBorders();
@ -2441,7 +2453,7 @@ export default class ChatHook extends Module {
return old_points.call(i, e);
}
const old_host = this.onHostingEvent;
/*const old_host = this.onHostingEvent;
this.onHostingEvent = function (e, _t) {
t.emit('tmi:host', e, _t);
return old_host.call(i, e, _t);
@ -2451,7 +2463,7 @@ export default class ChatHook extends Module {
this.onUnhostEvent = function (e, _t) {
t.emit('tmi:unhost', e, _t);
return old_unhost.call(i, e, _t);
}
}*/
const old_add = this.addMessage;
this.addMessage = function(e) {