mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix not loading Better xCloud after logging in
This commit is contained in:
parent
033ac31333
commit
b8efaf9648
@ -6,6 +6,7 @@
|
|||||||
// @author redphx
|
// @author redphx
|
||||||
// @license MIT
|
// @license MIT
|
||||||
// @match https://www.xbox.com/*/play*
|
// @match https://www.xbox.com/*/play*
|
||||||
|
// @match https://www.xbox.com/*/auth/msa?*loggedIn*
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @grant none
|
// @grant none
|
||||||
// @updateURL https://raw.githubusercontent.com/redphx/better-xcloud/main/better-xcloud.meta.js
|
// @updateURL https://raw.githubusercontent.com/redphx/better-xcloud/main/better-xcloud.meta.js
|
||||||
@ -38,6 +39,17 @@ window.NATIVE_MKB_TITLES = [
|
|||||||
// '9P731Z4BBCT3', // Atomic Heart
|
// '9P731Z4BBCT3', // Atomic Heart
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (window.location.pathname.includes('/auth/msa')) {
|
||||||
|
window.addEventListener('load', e => {
|
||||||
|
window.location.search.includes('loggedIn') && setTimeout(() => {
|
||||||
|
const location = window.location;
|
||||||
|
location.pathname.includes('/play') && location.reload(true);
|
||||||
|
}, 2000);
|
||||||
|
});
|
||||||
|
// Stop processing the script
|
||||||
|
throw new Error('[Better xCloud] Refreshing the page after logging in');
|
||||||
|
}
|
||||||
|
|
||||||
console.log(`[Better xCloud] readyState: ${document.readyState}`);
|
console.log(`[Better xCloud] readyState: ${document.readyState}`);
|
||||||
|
|
||||||
const BxEvent = {
|
const BxEvent = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user