diff --git a/src/plugins/_core/noTrack.ts b/src/plugins/_core/noTrack.ts index ea7c9f09f..6fcb4daba 100644 --- a/src/plugins/_core/noTrack.ts +++ b/src/plugins/_core/noTrack.ts @@ -44,8 +44,8 @@ export default definePlugin({ find: "AnalyticsActionHandlers.handle", predicate: () => settings.store.disableAnalytics, replacement: { - match: /^.+$/, - replace: "()=>{}", + match: /\(0,\i\.analyticsTrackingStoreMaker\)/, + replace: "(()=>{})", }, }, { diff --git a/src/plugins/experiments/index.tsx b/src/plugins/experiments/index.tsx index 7447d532f..034b2323a 100644 --- a/src/plugins/experiments/index.tsx +++ b/src/plugins/experiments/index.tsx @@ -25,12 +25,11 @@ import { Devs, IS_MAC } from "@utils/constants"; import { Margins } from "@utils/margins"; import definePlugin, { OptionType } from "@utils/types"; import { findByPropsLazy } from "@webpack"; -import { Forms, React } from "@webpack/common"; +import { ExperimentStore, Forms, React } from "@webpack/common"; import hideBugReport from "./hideBugReport.css?managed"; const KbdStyles = findByPropsLazy("key", "combo"); -let BugReporterExperiment: any; const modKey = IS_MAC ? "cmd" : "ctrl"; const altKey = IS_MAC ? "opt" : "alt"; @@ -128,20 +127,10 @@ export default definePlugin({ replace: "$&if($1==null)return;" } }, - { - find: "2026-01-bug-reporter", - replacement: { - match: /(?<==)(?=\(0,\i\(.+?\)\.\i\)\({name:"2026-01-bug-reporter")/, - replace: "$self.BugReporterExperiment=" - } - } + ], - set BugReporterExperiment(value: any) { - BugReporterExperiment = value; - }, - - start: () => !BugReporterExperiment.getConfig().hasBugReporterAccess && enableStyle(hideBugReport), + start: () => ExperimentStore.getUserExperimentBucket("2026-01-bug-reporter") > 0 && enableStyle(hideBugReport), stop: () => disableStyle(hideBugReport), settingsAboutComponent: () => { diff --git a/src/plugins/implicitRelationships/index.ts b/src/plugins/implicitRelationships/index.ts index 3af463e3f..905b341a6 100644 --- a/src/plugins/implicitRelationships/index.ts +++ b/src/plugins/implicitRelationships/index.ts @@ -96,8 +96,8 @@ export default definePlugin({ { find: ".REQUEST_GUILD_MEMBERS,", replacement: { - match: /\.send\(\i\.\i\.REQUEST_GUILD_MEMBERS,{/, - replace: "$&nonce:arguments[1].nonce," + match: /\.REQUEST_GUILD_MEMBERS,{/, + replace: "$&nonce:arguments[1]?.nonce," } }, {