revert canary only patches
This commit is contained in:
parent
b86cee5b1b
commit
833c0e6e15
3 changed files with 6 additions and 6 deletions
|
|
@ -1288,8 +1288,8 @@ export default definePlugin({
|
|||
// Allows in-progress Quests to still show.
|
||||
find: "QUESTS_BAR,questId",
|
||||
replacement: {
|
||||
match: /(?=if\(null==(\i)\)return null;)(.{0,125}?quest:\i}\);return)/,
|
||||
replace: "const hidePopup=$self.shouldHideQuestPopup($1);$2!hidePopup&&"
|
||||
match: /return null==(\i)\?null:\(/,
|
||||
replace: "return !$self.shouldHideQuestPopup($1)&&"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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?.name === "2026-01-bug-reporter");
|
||||
const BugReporterExperiment = findLazy(m => m?.definition?.id === "2024-09_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.getConfig().hasBugReporterAccess && enableStyle(hideBugReport),
|
||||
start: () => !BugReporterExperiment.getCurrentConfig().hasBugReporterAccess && enableStyle(hideBugReport),
|
||||
stop: () => disableStyle(hideBugReport),
|
||||
|
||||
settingsAboutComponent: () => {
|
||||
|
|
|
|||
|
|
@ -261,8 +261,8 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Fix sizes for mobile indicators which aren't online
|
||||
match: /(?<=\(\i\.status,)(\i)(?=,\{.{0,15}isMobile:(\i))/,
|
||||
replace: '$2?"online":$1'
|
||||
match: /(?<=\(\i\.status,)(\i)(?=,(\i),\i\))/,
|
||||
replace: (_, userStatus, isMobile) => `${isMobile}?"online":${userStatus}`
|
||||
},
|
||||
{
|
||||
// Make isMobile true no matter the status
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue