Revert "revert canary only patches"

This reverts commit 833c0e6e15.
This commit is contained in:
thororen1234 2026-02-02 21:02:28 -05:00
parent 833c0e6e15
commit c9a486b2dc
No known key found for this signature in database
3 changed files with 6 additions and 6 deletions

View file

@ -1288,8 +1288,8 @@ export default definePlugin({
// Allows in-progress Quests to still show.
find: "QUESTS_BAR,questId",
replacement: {
match: /return null==(\i)\?null:\(/,
replace: "return !$self.shouldHideQuestPopup($1)&&"
match: /(?=if\(null==(\i)\)return null;)(.{0,125}?quest:\i}\);return)/,
replace: "const hidePopup=$self.shouldHideQuestPopup($1);$2!hidePopup&&"
}
},
{

View file

@ -20,7 +20,7 @@ import { 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";
@ -160,7 +160,7 @@ export default definePlugin({
return !!labelCleaned && urlEndCleaned !== undefined && labelCleaned === urlEndCleaned;
},
start: () => !BugReporterExperiment.getCurrentConfig().hasBugReporterAccess && enableStyle(hideBugReport),
start: () => !BugReporterExperiment.getConfig().hasBugReporterAccess && enableStyle(hideBugReport),
stop: () => disableStyle(hideBugReport),
settingsAboutComponent: () => {

View file

@ -261,8 +261,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