From 1848b1653694f2797e42ef84f0102833fb7ce55c Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:30:06 -0300 Subject: [PATCH 1/2] ReviewDB: Fix in panel profile --- src/plugins/consoleJanitor/index.ts | 2 +- src/plugins/reviewDB/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/consoleJanitor/index.ts b/src/plugins/consoleJanitor/index.ts index e847c412..f5f43c06 100644 --- a/src/plugins/consoleJanitor/index.ts +++ b/src/plugins/consoleJanitor/index.ts @@ -126,7 +126,7 @@ export default definePlugin({ } }, { - find: '"Handling ping: "', + find: '"_handleLocalVideoDisabled: ', predicate: () => settings.store.disableNoisyLoggers, replacement: { match: /new \i\.\i\("RTCConnection\("\.concat.+?\)\)(?=,)/, diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx index 1164a2c5..9d93e53a 100644 --- a/src/plugins/reviewDB/index.tsx +++ b/src/plugins/reviewDB/index.tsx @@ -91,7 +91,7 @@ export default definePlugin({ } }, { - find: ".PANEL,isInteractionSource:", + find: ".PANEL,interactionType:", replacement: { match: /{profileType:\i\.\i\.PANEL,children:\[/, replace: "$&$self.BiteSizeReviewsButton({user:arguments[0].user})," From 6cce8a8bc43506eb3e2f18292e649a12d05905cf Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:30:16 -0300 Subject: [PATCH 2/2] Experiments: Allow clips to be recorded without streaming --- src/plugins/experiments/index.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/plugins/experiments/index.tsx b/src/plugins/experiments/index.tsx index 33c32b1a..82e20f73 100644 --- a/src/plugins/experiments/index.tsx +++ b/src/plugins/experiments/index.tsx @@ -23,12 +23,13 @@ import { ErrorCard } from "@components/ErrorCard"; import { Devs } from "@utils/constants"; import { Margins } from "@utils/margins"; import definePlugin, { OptionType } from "@utils/types"; -import { findByPropsLazy } from "@webpack"; +import { findByPropsLazy, findLazy } from "@webpack"; import { Forms, React } from "@webpack/common"; import hideBugReport from "./hideBugReport.css?managed"; const KbdStyles = findByPropsLazy("key", "combo"); +const BugReporterExperiment = findLazy(m => m?.definition?.id === "2024-09_bug_reporter"); const settings = definePluginSettings({ toolbarDevMenu: { @@ -78,8 +79,8 @@ export default definePlugin({ { find: "toolbar:function", replacement: { - match: /\i\.isStaff\(\)/, - replace: "true" + match: /hasBugReporterAccess:(\i)/, + replace: "_hasBugReporterAccess:$1=true" }, predicate: () => settings.store.toolbarDevMenu }, @@ -91,10 +92,18 @@ export default definePlugin({ match: /\i\.isDM\(\)\|\|\i\.isThread\(\)/, replace: "false", } + }, + // enable option to always record clips even if you are not streaming + { + find: "isDecoupledGameClippingEnabled(){", + replacement: { + match: /\i\.isStaff\(\)/, + replace: "true" + } } ], - start: () => enableStyle(hideBugReport), + start: () => !BugReporterExperiment.getCurrentConfig().hasBugReporterAccess && enableStyle(hideBugReport), stop: () => disableStyle(hideBugReport), settingsAboutComponent: () => {