Disable header & footer

This commit is contained in:
redphx 2025-02-05 20:11:24 +07:00
parent 5ce7ade574
commit 5949e1e411
3 changed files with 14 additions and 1 deletions

View File

@ -8245,6 +8245,11 @@ var BxExposed = {
} catch (e) {
BxLogger.error(LOG_TAG3, e);
}
try {
state.uhf.headerMode = "Off", state.uhf.footerMode = "Off";
} catch (e) {
BxLogger.error(LOG_TAG3, e);
}
try {
let xCloud = state.xcloud.authentication.authStatusByStrategy.XCloud;
if (xCloud.type === 3 && xCloud.error.type === "UnsupportedMarketError") window.stop(), window.location.href = "https://www.xbox.com/en-US/play";

File diff suppressed because one or more lines are too long

View File

@ -81,6 +81,14 @@ export const BxExposed = {
BxLogger.error(LOG_TAG, e);
}
// Disable header & footer
try {
state.uhf.headerMode = 'Off';
state.uhf.footerMode = 'Off';
} catch (e) {
BxLogger.error(LOG_TAG, e);
}
// Redirect to /en-US/play if visiting from an unsupported region
try {
const xCloud = state.xcloud.authentication.authStatusByStrategy.XCloud;