Fix Patches

This commit is contained in:
thororen1234 2025-10-15 16:00:34 -04:00
parent 43f9481732
commit 560f7f4a0f
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -233,7 +233,7 @@ export default definePlugin({
settings,
patches: [
{
find: "BkZhUF),",
find: ".platformSelectorPrimary,",
replacement: {
match: /(?<=questId:(\i\.id).*?"secondary",)disabled:!0/,
replace: "onClick: () => $self.mobileQuestPatch($1)"

View file

@ -1205,7 +1205,7 @@ export default definePlugin({
// The "Quest Accepted" text is changed to "Resume" if the Quest is in progress but not active.
// Then, when the Quest Accepted button is clicked, resume the automatic completion of the
// Quest and disable the button again.
match: /(?<=fullWidth:!0}\)}\):.{0,200}?secondary",)disabled:!0,text:(.{0,30}?\["9KoPyM"\]\)),/,
match: /(?<=fullWidth:!0}\)}\):.{0,200}?secondary",)disabled:!0,text:(.{0,30}?#{intl::QUEST_ACCEPTED}\)),/,
replace: "...$self.getQuestAcceptedButtonProps(arguments[0].quest,$1),"
},
{

View file

@ -155,7 +155,7 @@ export default definePlugin({
{
find: '"CustomStatusModalWithPreview"',
replacement: {
match: /(?<=(\i)\.state\).*?)\{text:\i\.\i\.\i\(\i\.\i\.R3BPHx\)/,
match: /(?<=(\i)\.state\).*?)\{text:\i\.\i\.\i\(\i\.\i#{intl::SAVE}\)/,
replace: "$self.renderRememberButton($1),$&"
}
},