This commit is contained in:
Nuckyz 2026-01-23 18:25:09 -03:00
parent 9ab749aabe
commit e25c5db2ab
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
7 changed files with 9 additions and 9 deletions

View file

@ -49,7 +49,7 @@ export default definePlugin({
},
{
// Guild Banner
find: '"data-banner-visible":',
find: "#{intl::DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO}",
replacement: {
match: /(guildBanner:\i,animate:)\i(?=}\):null)/,
replace: "$1!0"

View file

@ -27,7 +27,7 @@ export default definePlugin({
{
find: "#{intl::PREVIEW_BYTES_LEFT}",
replacement: {
match: /(?<=fileContents:(\i),bytesLeft:(\i).+?)url:\i,fileName:\i,fileSize:\i}\),(?=.{0,25}setLanguage:)/g,
match: /url:\i,fileName:\i,fileSize:\i}\),(?=.{0,25}setLanguage:)(?<=fileContents:(\i),bytesLeft:(\i).+?)/g,
replace: "$&$self.addCopyButton({fileContents:$1,bytesLeft:$2}),"
}
}

View file

@ -186,7 +186,7 @@ export default definePlugin({
find: '.getByName("fork_and_knife")',
predicate: () => settings.store.enableEmojiBypass,
replacement: {
match: ".CHAT",
match: /\.CHAT/,
replace: ".STATUS"
}
},

View file

@ -27,7 +27,7 @@ export default definePlugin({
patches: [
{
// same find as RoleColorEverywhere chatbox mentions
// Same find as RoleColorEverywhere chatbox mentions
find: ':"text":',
replacement: {
match: /(hidePersonalInformation\).+?)(if\(null!=\i\){.+?return \i)(?=})/,

View file

@ -28,7 +28,7 @@ import { Menu } from "@webpack/common";
import managedStyle from "./style.css?managed";
const Button = findComponentByCodeLazy(".GREEN,positionKeyStemOverride");
const Button = findComponentByCodeLazy(".GREEN,positionKeyStemOverride:");
const ShowCurrentGame = getUserSettingLazy<boolean>("status", "showCurrentGame")!;
@ -114,8 +114,8 @@ export default definePlugin({
{
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
replacement: {
match: /className:\i\.\i,.{0,50}children:\[(?=.{0,25}accountContainerRef)/,
replace: "$&$self.GameActivityToggleButton(arguments[0]),"
match: /children:\[(?=.{0,25}?accountContainerRef)/,
replace: "children:[$self.GameActivityToggleButton(arguments[0]),"
}
}
],

View file

@ -161,7 +161,7 @@ export default definePlugin({
{
find: "#{intl::WELCOME_CTA_LABEL}",
replacement: {
match: /(?<={channel:\i,message:\i}=(\i).+?)className:\i\.\i,(?=.{0,40}"sticker")/,
match: /className:\i\.\i,(?=.{0,40}?"sticker")(?<={channel:\i,message:\i}=(\i).+?)/,
replace: "$&onContextMenu:(vcEvent)=>$self.pickSticker(vcEvent, $1),"
}
}

View file

@ -91,7 +91,7 @@ export default definePlugin({
},
// Slate
{
// same find as FullUserInChatbox
// Same find as FullUserInChatbox
find: ':"text":',
replacement: [
{