Fix most of our plugins

This commit is contained in:
thororen1234 2026-04-22 18:46:09 -04:00
parent 860b29f457
commit 258b7524b5
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -151,9 +151,9 @@ export default definePlugin({
patches: [
{
find: "#{intl::T+3Adg::raw}",
find: "#{intl::zr0Y5R::raw}",
replacement: {
match: /(colors:\i\}\);)return(.*?enableTooltip:!1\}\):null,\i\]\}\))/,
match: /(\.colorString\?\?\i;)return(.*?enableTooltip:!1\}\):null,\i\]\}\))/,
replace: "$1return $self.wrapRolePill(arguments[0],()=>$2)",
},
},

View file

@ -57,7 +57,7 @@ interface DiscordStatus {
}
// TODO: find clearCustomStatusHint original css/svg or replace
const PMenu = findComponentByCodeLazy("#{intl::MORE_OPTIONS}", ".ChevronSmallRightIcon");
const PMenu = findComponentByCodeLazy("#{intl::MORE_OPTIONS}", ",renderSubmenu:");
const EmojiComponent = findComponentByCodeLazy(/\.translateSurrogatesToInlineEmoji\(\i\.name\);/);
const CustomStatusSettings = getUserSettingLazy("status", "customStatus")!;

View file

@ -24,7 +24,7 @@ export default definePlugin({
find: ".VOICE_PANEL}}",
replacement: [
{
match: /\}\),children:\[(?=.{0,200}\.VOICE_CHANNEL_GAME_ACTIVITY_INDICATOR_VIEWED)/,
match: /\}\),children:\[(?=.{0,50}#{intl::PRIORITY_SPEAKER})/,
replace: "$&$self.renderButtons(arguments[0]?.user),"
}
]