Show "Stream settings" and "App settings" in the Guide menu

This commit is contained in:
redphx
2024-07-02 06:41:23 +07:00
parent 6de235ce2f
commit 986d9fe088
2 changed files with 51 additions and 7 deletions

View File

@@ -635,6 +635,16 @@ true` + text;
str = str.replace(text, 'if (!e) e = "https://www.xbox.com";');
return str;
},
exposeDialogRoutes(str: string) {
const text = 'return{goBack:function(){';
if (!str.includes(text)) {
return false;
}
str = str.replace(text, 'return window.BX_EXPOSED.dialogRoutes = {goBack:function(){');
return str;
}
};
let PATCH_ORDERS: PatchArray = [
@@ -652,6 +662,7 @@ let PATCH_ORDERS: PatchArray = [
'broadcastPollingMode',
'exposeStreamSession',
'exposeDialogRoutes',
getPref(PrefKey.UI_LAYOUT) !== 'default' && 'websiteLayout',
getPref(PrefKey.LOCAL_CO_OP_ENABLED) && 'supportLocalCoOp',