Questify & MiddleClickTweaks: Patch Fixes (#1276)
* Patch Fix. * Patch Fix. * Config Object Structure Fix. * Config Object Structure Fix.
This commit is contained in:
parent
5c008072b7
commit
ccd3d9bd3c
3 changed files with 8 additions and 8 deletions
|
|
@ -116,12 +116,12 @@ export default definePlugin({
|
|||
}
|
||||
},
|
||||
{
|
||||
// Detects paste events triggered inside of Discord's search box.
|
||||
find: "props.handlePastedText&&",
|
||||
// Detects paste events triggered inside Discord's channel search editor.
|
||||
find: "onPasteCapture:function",
|
||||
replacement: {
|
||||
match: /(?<=clipboardData\);)/,
|
||||
replace: "if($self.isPastingDisabled(true)){arguments[1].preventDefault?.();arguments[1].stopPropagation?.();return;};"
|
||||
match: /(?<=onPasteCapture:function\((\i)\){)(?=\i\.insertData\(\1\.clipboardData\))/,
|
||||
replace: "if($self.isPastingDisabled(true)){$1.preventDefault?.();$1.stopPropagation?.();return;}"
|
||||
}
|
||||
},
|
||||
}
|
||||
],
|
||||
});
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ export default definePlugin({
|
|||
replacement: [
|
||||
{
|
||||
// Overwrite button props for UNENROLLED Quests.
|
||||
match: /(?<=onClick:\(\)=>{.[^}]+},text:\i,icon:\i,fullWidth:!0)/,
|
||||
match: /(?<=onClick:\(\)=>{\i\?\.\(\),\i\(\)},text:\i,icon:\i,iconPosition:\i,fullWidth:!0)/,
|
||||
replace: ",...($self.getQuestButtonProps(arguments[0])??{})"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ const reportVideoProgress = findByCodeLazy(".QUESTS_VIDEO_PROGRESS(") as (questI
|
|||
const sendHeartbeat = findByCodeLazy(".QUESTS_HEARTBEAT(") as (options: {
|
||||
questId: string;
|
||||
streamKey?: string;
|
||||
applicationId: string;
|
||||
applicationId?: string;
|
||||
terminal?: boolean;
|
||||
executableFingerprint?: unknown;
|
||||
}) => Promise<void>;
|
||||
|
|
@ -705,7 +705,7 @@ async function reportPlayQuestProgress(
|
|||
const attempts = options.attempts ?? 1;
|
||||
const delay = options.delay ?? 2500;
|
||||
const timeout = options.timeout ?? 10000;
|
||||
const applicationId = options.applicationId ?? quest.config.application.id;
|
||||
const applicationId = options.applicationId ?? entry.task.applications?.[0]?.id ?? quest.config.application?.id;
|
||||
|
||||
for (let attempt = 1; attempt <= attempts; attempt++) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue