fix most patches
This commit is contained in:
parent
cd1b5dea31
commit
caab1fd59a
4 changed files with 10 additions and 24 deletions
|
|
@ -281,7 +281,7 @@ export default definePlugin({
|
|||
},
|
||||
// Removes Modal Animation
|
||||
{
|
||||
find: "renderLurkerModeUpsellPopout,position:",
|
||||
find: ".SWITCH_THUMB_BACKGROUND_SELECTED_DEFAULT)",
|
||||
predicate: () => settings.store.noModalAnimation,
|
||||
replacement: {
|
||||
match: /200:300/g,
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ export default definePlugin({
|
|||
},
|
||||
},
|
||||
{
|
||||
find: "keybindActionTypes()",
|
||||
find: '"push-to-talk-priority"',
|
||||
predicate: () => settings.store.keybindScreenshare,
|
||||
replacement: {
|
||||
match: /=\[(\{id:.{0,25}value:\i\.\i\.UNASSIGNED)/,
|
||||
|
|
|
|||
|
|
@ -1400,9 +1400,9 @@ export default definePlugin({
|
|||
patches: [
|
||||
{
|
||||
// Needed for GuildlessServerListItemComponent component in components.tsx
|
||||
find: "=\"DOWNLOAD_APPS\";function",
|
||||
find: '="DOWNLOAD_APPS";function',
|
||||
replacement: {
|
||||
match: /(?<=function\(\i,\i,\i\){\i.\i\(\i,{)(?=.{0,25000}?ariaHidden:!0,asContainer:!\i,children:\i}\)}var \i=\i\(\d+\);let (\i)=\i.forwardRef\(function)/,
|
||||
match: /(?=\i:\(\)=>\i.*?asContainer:!\i.{0,50};let (\i)=\i.forwardRef\(function)/,
|
||||
replace: "GuildlessServerListItemComponent:()=>$1,"
|
||||
}
|
||||
},
|
||||
|
|
@ -1809,24 +1809,6 @@ export default definePlugin({
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// Adds support for dev://experiment/2025-12-quest-cta-refactor-rollout
|
||||
find: "WATCH_VIDEO?async()=>{await",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?=let{quest:)/,
|
||||
replace: "const questifyText=$self.getQuestUnacceptedButtonText(arguments[0].quest)??$self.getQuestAcceptedButtonText(arguments[0].quest);"
|
||||
},
|
||||
{
|
||||
match: /(?<=}\),)(\i\?\.\(\))/,
|
||||
replace: "!$self.processQuestForAutoComplete(arguments[0].quest,true)&&($1)"
|
||||
},
|
||||
{
|
||||
match: /(?<=,text:)(\i),icon:\i/,
|
||||
replace: "questifyText??$1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// Same thing as above, maybe? Different location though.
|
||||
find: ".ACCEPT_QUEST),",
|
||||
|
|
@ -1842,7 +1824,11 @@ export default definePlugin({
|
|||
{
|
||||
match: /(?<="primary",onClick:)(\i)/,
|
||||
replace: "()=>{!$self.processQuestForAutoComplete(arguments[0].quest,true)&&$1()}"
|
||||
}
|
||||
},
|
||||
{
|
||||
match: /(?<=\}\),)(\i\?\.\(\))/,
|
||||
replace: "!$self.processQuestForAutoComplete(arguments[0].quest,true)&&($1)"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ".REQUEST_GUILD_MEMBERS,",
|
||||
replacement: {
|
||||
match: /\.send\(\i\.\i\.REQUEST_GUILD_MEMBERS,{/,
|
||||
match: /\.send\(\i\.REQUEST_GUILD_MEMBERS,{/,
|
||||
replace: "$&nonce:arguments[1].nonce,"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue