Questify, LimitlessScreenshare, HeaderBarAPI: Fixes (#1344)

* Patch Fix.

* Other Things.
This commit is contained in:
Etorix 2026-09-04 22:15:24 -07:00 • committed by GitHub
parent 26e7fb2adb
commit 8a29c9c458
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ import type { ComponentType, JSX, MouseEventHandler, ReactNode } from "react";
const logger = new Logger("HeaderBarAPI");
const HeaderBarClasses = findCssClassesLazy("clickable", "selected", "badge", "badgeContainer");
const HeaderBarIcon = findComponentByCodeLazy(".HEADER_BAR_BADGE_TOP:", '"aria-haspopup":') as ComponentType<ChannelToolbarButtonProps>;
const HeaderBarIcon = findComponentByCodeLazy("tooltipPosition:", '"aria-haspopup":', '"data-jump-section":') as ComponentType<ChannelToolbarButtonProps>;
export interface HeaderBarButtonProps {
/** The icon component to render inside the button */

View file

@ -71,12 +71,12 @@ export default definePlugin({
find: '"stream-settings-audio-enable"',
replacement: [
{
match: /(?<=action:\(\)=>(\i)\((\i),\i,\i,(\i\.\i\.RESOLUTION)\)\},.{0,200}#{intl::SCREENSHARE_FRAME_RATE}\),children:)(\i)/,
replace: "[...$self.SettingsRange($1,[$2,$3],false)]"
match: /(?<=action:\(\)=>\{.{0,50}(\i)\(\i,\i,\i,(\i\.\i\.RESOLUTION)\)\}\}.{0,200}#{intl::STREAM_RESOLUTION}\),children:)\i/,
replace: "[...$self.SettingsRange($1,[!0,$2],true)]"
},
{
match: /(?<=action:\(\)=>(\i)\((\i),\i,\i,(\i\.\i\.RESOLUTION)\)\},.{0,300}#{intl::STREAM_RESOLUTION}\),children:)(\i)/,
replace: "[...$self.SettingsRange($1,[$2,$3],true)]"
match: /(?<=action:\(\)=>\{.{0,50}(\i)\(\i,\i,\i,(\i\.\i\.RESOLUTION)\)\}\}.{0,200}#{intl::SCREENSHARE_FRAME_RATE}\),children:)\i/,
replace: "[...$self.SettingsRange($1,[!0,$2],false)]"
},
]
}

View file

@ -239,7 +239,7 @@ export default definePlugin({
find: "collapsed-with-rewards\":\"collapsed-without-rewards",
predicate: () => getQuestifySettings().disableAccountPanelPromo || !getQuestifySettings().disableAccountPanelQuestProgress,
replacement: {
match: /(?<=function\(\){)(let (\i)=\(0,\i.\i\)\(\);)/,
match: /(?<=function\(\)\{)(let (\i)=\(0,\i\.\i\)\(\)(?:,\i=\(0,\i\.\i\)\(\))?;)(?=return null==\2(?:&&null!=\i)?\?)/,
replace: "void $self.useQuestRerender();$1$2=$self.getQuestPanelOverride($2);"
}
},