Compare commits

..

5 Commits

6 changed files with 26 additions and 40 deletions

View File

@ -14,41 +14,12 @@ body:
id: device_type id: device_type
attributes: attributes:
label: Device label: Device
description: "Which device are you using?" description: "Which device type is this feature for?"
options: options:
- All devices
- Phone/Tablet - Phone/Tablet
- Laptop
- Desktop - Desktop
- TV - TV
- Other
multiple: false
validations:
required: true
- type: dropdown
id: os
attributes:
label: "Operating System"
description: "Which operating system is it running?"
options:
- Windows
- macOS
- Linux
- Android
- iOS/iPadOS
- Other
multiple: false
validations:
required: true
- type: dropdown
id: browser
attributes:
label: "Browser"
description: "Which browser are you using?"
options:
- Chrome/Edge/Chromium
- Kiwi Browser
- Safari
- Other
multiple: false multiple: false
validations: validations:
required: true required: true

View File

@ -1,5 +1,5 @@
// ==UserScript== // ==UserScript==
// @name Better xCloud // @name Better xCloud
// @namespace https://github.com/redphx // @namespace https://github.com/redphx
// @version 5.5.1 // @version 5.5.2
// ==/UserScript== // ==/UserScript==

File diff suppressed because one or more lines are too long

View File

@ -211,3 +211,17 @@ div[class*=SupportedInputsBadge] {
user-select: none; user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
} }
/* Device Code page */
#root {
section[class*=DeviceCodePage-module__page] {
margin-left: 20px !important;
margin-right: 20px !important;
margin-top: 20px !important;
max-width: 800px !important;
}
div[class*=DeviceCodePage-module__back] {
display: none;
}
}

View File

@ -112,7 +112,7 @@ document.addEventListener('readystatechange', e => {
return; return;
} }
STATES.isSignedIn = (window as any).xbcUser?.isSignedIn; STATES.isSignedIn = !!((window as any).xbcUser?.isSignedIn);
if (STATES.isSignedIn) { if (STATES.isSignedIn) {
// Preload Remote Play // Preload Remote Play
@ -152,6 +152,7 @@ window.addEventListener(BxEvent.XCLOUD_SERVERS_UNAVAILABLE, e => {
}); });
window.addEventListener(BxEvent.XCLOUD_SERVERS_READY, e => { window.addEventListener(BxEvent.XCLOUD_SERVERS_READY, e => {
STATES.isSignedIn = true;
HeaderSection.watchHeader(); HeaderSection.watchHeader();
}); });

View File

@ -750,7 +750,7 @@ true` + text;
return false; return false;
} }
index = str.indexOf('const ', index - 100); index = str.indexOf('const ', index - 30);
if (index < 0) { if (index < 0) {
return false; return false;
} }