mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 10:06:54 +00:00
4.57.0
* Added: The FFZ Subwoofer badge now displays a user's number of subscribed months in its tool-tip. * Added: Setting to set the default sorting mode of the directory. (Have you tried the Deck add-on?) * Fixed: The location of certain player action buttons was incorrect after Twitch made changes to the player. * Changed: Badges added by add-on are now grouped by add-on in badge visibility settings. This allows users to disable all badges from a given add-on at once, and is just generally nicer to look at. * API Added: `iterateMessages()` method on the `chat` module as an easy way to iterate over all live chat messages, in case existing messages need to be modified without the overhead of tokenization. * API Added: Badges can now be stacked together for visibility purposes, similar to Twitch's native badge versions, by setting a `base_id` on each badge. * API Added: Badges can now display dynamic data on their tool-tip by using a `tooltipExtra` method. This was used to display Subwoofer subscription lengths. * API Added: New setting UI type `setting-text` that can be used to insert arbitrary markdown into settings pages. * API Changed: The `ffz_user_class` special property on messages can be an array instead of a string. * API Fixed: Add-on proxy modules are now correctly used for an add-on's sub-modules.
This commit is contained in:
parent
0eaf1a55be
commit
21ae0059a5
22 changed files with 499 additions and 688 deletions
|
@ -1436,7 +1436,7 @@ export default class ChatHook extends Module {
|
|||
|
||||
cls.prototype.render = function() {
|
||||
if ( this.state.ffz_errors > 0 ) {
|
||||
const React = t.web_munch.getModule('react'),
|
||||
const React = t.site.getReact(),
|
||||
createElement = React && React.createElement;
|
||||
|
||||
if ( ! createElement )
|
||||
|
@ -1486,7 +1486,7 @@ export default class ChatHook extends Module {
|
|||
cls.prototype.render = function() {
|
||||
try {
|
||||
if ( t.CommunityStackHandler ) {
|
||||
const React = t.web_munch.getModule('react'),
|
||||
const React = t.site.getReact(),
|
||||
out = this.ffzRender(),
|
||||
thing = out?.props?.children?.props?.children;
|
||||
|
||||
|
@ -1702,8 +1702,8 @@ export default class ChatHook extends Module {
|
|||
return true;
|
||||
|
||||
const t = this,
|
||||
React = this.web_munch.getModule('react'),
|
||||
createElement = React && React.createElement,
|
||||
React = this.site.getReact(),
|
||||
createElement = React?.createElement,
|
||||
StackMod = this.web_munch.getModule('highlightstack');
|
||||
|
||||
if ( ! createElement || ! StackMod )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue