mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-07-05 13:51:43 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
d73f91ed5f | |||
b918fadaab | |||
b79775839b | |||
d3e0ba9d9f | |||
e6e8297632 | |||
e94fb28266 |
@ -301,5 +301,5 @@ But if you still really want to donate, I have a [Ko-fi page](https://ko-fi.com/
|
|||||||
- Icons by [Phosphor Icons](https://phosphoricons.com)
|
- Icons by [Phosphor Icons](https://phosphoricons.com)
|
||||||
|
|
||||||
## Disclaimers
|
## Disclaimers
|
||||||
- Use as it your own risk.
|
- Use it at your own risk.
|
||||||
- This project is not affiliated with Xbox in any way. All Xbox logos/icons/trademarks are copyright of their respective owners.
|
- This project is not affiliated with Xbox in any way. All Xbox logos/icons/trademarks are copyright of their respective owners.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Better xCloud
|
// @name Better xCloud
|
||||||
// @namespace https://github.com/redphx
|
// @namespace https://github.com/redphx
|
||||||
// @version 1.18.1
|
// @version 1.18.2
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Better xCloud
|
// @name Better xCloud
|
||||||
// @namespace https://github.com/redphx
|
// @namespace https://github.com/redphx
|
||||||
// @version 1.18.1
|
// @version 1.18.2
|
||||||
// @description Improve Xbox Cloud Gaming (xCloud) experience
|
// @description Improve Xbox Cloud Gaming (xCloud) experience
|
||||||
// @author redphx
|
// @author redphx
|
||||||
// @license MIT
|
// @license MIT
|
||||||
@ -13,7 +13,7 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const SCRIPT_VERSION = '1.18.1';
|
const SCRIPT_VERSION = '1.18.2';
|
||||||
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
||||||
|
|
||||||
console.log(`[Better xCloud] readyState: ${document.readyState}`);
|
console.log(`[Better xCloud] readyState: ${document.readyState}`);
|
||||||
@ -1530,11 +1530,11 @@ class TitlesInfo {
|
|||||||
|
|
||||||
static saveFromTitleInfo(titleInfo) {
|
static saveFromTitleInfo(titleInfo) {
|
||||||
const details = titleInfo.details;
|
const details = titleInfo.details;
|
||||||
TitlesInfo.#INFO[details.productId] = {
|
TitlesInfo.update(details.productId, {
|
||||||
titleId: titleInfo.titleId,
|
titleId: titleInfo.titleId,
|
||||||
// Has more than one input type -> must have touch support
|
// Has more than one input type -> must have touch support
|
||||||
hasTouchSupport: (details.supportedInputTypes.length > 1),
|
hasTouchSupport: (details.supportedInputTypes.length > 1),
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static saveFromCatalogInfo(catalogInfo) {
|
static saveFromCatalogInfo(catalogInfo) {
|
||||||
@ -1763,6 +1763,8 @@ class TouchController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static #$bar;
|
static #$bar;
|
||||||
|
static #$style;
|
||||||
|
|
||||||
static #enable = false;
|
static #enable = false;
|
||||||
static #showing = false;
|
static #showing = false;
|
||||||
static #dataChannel;
|
static #dataChannel;
|
||||||
@ -1807,6 +1809,7 @@ class TouchController {
|
|||||||
TouchController.#dataChannel = null;
|
TouchController.#dataChannel = null;
|
||||||
|
|
||||||
TouchController.#$bar && TouchController.#$bar.removeAttribute('data-showing');
|
TouchController.#$bar && TouchController.#$bar.removeAttribute('data-showing');
|
||||||
|
TouchController.#$style && (TouchController.#$style.textContent = '');
|
||||||
}
|
}
|
||||||
|
|
||||||
static #dispatchMessage(msg) {
|
static #dispatchMessage(msg) {
|
||||||
@ -1839,6 +1842,7 @@ class TouchController {
|
|||||||
});
|
});
|
||||||
|
|
||||||
TouchController.#$bar = $bar;
|
TouchController.#$bar = $bar;
|
||||||
|
TouchController.#$style = $style;
|
||||||
|
|
||||||
const PREF_STYLE_STANDARD = PREFS.get(Preferences.STREAM_TOUCH_CONTROLLER_STYLE_STANDARD);
|
const PREF_STYLE_STANDARD = PREFS.get(Preferences.STREAM_TOUCH_CONTROLLER_STYLE_STANDARD);
|
||||||
const PREF_STYLE_CUSTOM = PREFS.get(Preferences.STREAM_TOUCH_CONTROLLER_STYLE_CUSTOM);
|
const PREF_STYLE_CUSTOM = PREFS.get(Preferences.STREAM_TOUCH_CONTROLLER_STYLE_CUSTOM);
|
||||||
@ -2640,7 +2644,7 @@ class Preferences {
|
|||||||
[Preferences.STREAM_TARGET_RESOLUTION]: {
|
[Preferences.STREAM_TARGET_RESOLUTION]: {
|
||||||
'default': 'auto',
|
'default': 'auto',
|
||||||
'options': {
|
'options': {
|
||||||
'auto': __('auto'),
|
'auto': __('default'),
|
||||||
'1080p': '1080p',
|
'1080p': '1080p',
|
||||||
'720p': '720p',
|
'720p': '720p',
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user