From 54bb7b96e90ebaee308aebe578122591a27f0727 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 3 May 2024 18:58:56 -0300 Subject: [PATCH 1/2] Test Patches: Remove pnpm add puppeteer as it's already in deps --- .github/workflows/reportBrokenPlugins.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/reportBrokenPlugins.yml b/.github/workflows/reportBrokenPlugins.yml index 12cbb0770..39d639988 100644 --- a/.github/workflows/reportBrokenPlugins.yml +++ b/.github/workflows/reportBrokenPlugins.yml @@ -30,7 +30,6 @@ jobs: - name: Install dependencies run: | pnpm install --frozen-lockfile - pnpm add puppeteer - name: Install Google Chrome id: setup-chrome From a98f12bd1eabd0746834225c4ba3e6c755fe5fd1 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 3 May 2024 19:07:43 -0300 Subject: [PATCH 2/2] SecretRingToneEnabler: Fix patch --- src/plugins/secretRingTone/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/secretRingTone/index.ts b/src/plugins/secretRingTone/index.ts index 8f0176f88..9c3956a80 100644 --- a/src/plugins/secretRingTone/index.ts +++ b/src/plugins/secretRingTone/index.ts @@ -14,10 +14,11 @@ export default definePlugin({ authors: [Devs.AndrewDLO, Devs.FieryFlames], patches: [ { - find: "call_ringing_beat\"", + find: '"call_ringing_beat"', replacement: { - match: /500===\i\(\)\.random\(1,1e3\)/, - replace: "true" + // FIXME Remove === alternative when it hits stable + match: /500(!==|===)\i\(\)\.random\(1,1e3\)/, + replace: (_, predicate) => predicate === "!==" ? "false" : "true", } }, ],