Fix NoTrack, Experiments & ImplicitRelationships (#4162)
This commit is contained in:
parent
e009d5f882
commit
14508c1537
3 changed files with 7 additions and 18 deletions
|
|
@ -44,8 +44,8 @@ export default definePlugin({
|
|||
find: "AnalyticsActionHandlers.handle",
|
||||
predicate: () => settings.store.disableAnalytics,
|
||||
replacement: {
|
||||
match: /^.+$/,
|
||||
replace: "()=>{}",
|
||||
match: /\(0,\i\.analyticsTrackingStoreMaker\)/,
|
||||
replace: "(()=>{})",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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: () => {
|
||||
|
|
|
|||
|
|
@ -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,"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue