boom 2
This commit is contained in:
parent
9ab749aabe
commit
e25c5db2ab
7 changed files with 9 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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}),"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ export default definePlugin({
|
|||
find: '.getByName("fork_and_knife")',
|
||||
predicate: () => settings.store.enableEmojiBypass,
|
||||
replacement: {
|
||||
match: ".CHAT",
|
||||
match: /\.CHAT/,
|
||||
replace: ".STATUS"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)(?=})/,
|
||||
|
|
|
|||
|
|
@ -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]),"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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),"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ export default definePlugin({
|
|||
},
|
||||
// Slate
|
||||
{
|
||||
// same find as FullUserInChatbox
|
||||
// Same find as FullUserInChatbox
|
||||
find: ':"text":',
|
||||
replacement: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue