merge some of 3963 changes

This commit is contained in:
thororen1234 2026-02-04 23:19:53 -05:00
parent 7e773ea9ff
commit 662a2bdecd
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ 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 BugReporterExperiment = findLazy(m => m?.definition?.name === "2026-01-bug-reporter");
const modKey = IS_MAC ? "cmd" : "ctrl";
const altKey = IS_MAC ? "opt" : "alt";
@ -130,7 +130,7 @@ export default definePlugin({
}
],
start: () => !BugReporterExperiment.getCurrentConfig().hasBugReporterAccess && enableStyle(hideBugReport),
start: () => !BugReporterExperiment.getConfig().hasBugReporterAccess && enableStyle(hideBugReport),
stop: () => disableStyle(hideBugReport),
settingsAboutComponent: () => {

View file

@ -236,8 +236,8 @@ export default definePlugin({
},
{
// Fix sizes for mobile indicators which aren't online
match: /(?<=\(\i\.status,)(\i)(?=,(\i),\i\))/,
replace: (_, userStatus, isMobile) => `${isMobile}?"online":${userStatus}`
match: /(?<=\(\i\.status,)(\i)(?=,\{.{0,15}isMobile:(\i))/,
replace: '$2?"online":$1'
},
{
// Make isMobile true no matter the status