mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-07-11 16:51:44 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
2ee2469a10 | |||
9056b5926f | |||
730799821b | |||
fed7d489f4 |
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Better xCloud
|
// @name Better xCloud
|
||||||
// @namespace https://github.com/redphx
|
// @namespace https://github.com/redphx
|
||||||
// @version 1.1
|
// @version 1.1.1
|
||||||
// @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.1';
|
const SCRIPT_VERSION = '1.1.1';
|
||||||
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
||||||
|
|
||||||
const SERVER_REGIONS = {};
|
const SERVER_REGIONS = {};
|
||||||
@ -307,6 +307,14 @@ div[class*=Grip-module__container] {
|
|||||||
button[class*=GripHandle-module__container][aria-expanded=true] div[class*=Grip-module__container] {
|
button[class*=GripHandle-module__container][aria-expanded=true] div[class*=Grip-module__container] {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button[class*=GripHandle-module__container][aria-expanded=false] {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div[class*=StreamHUD-module__buttonsContainer] {
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -741,8 +749,6 @@ function checkHeader() {
|
|||||||
if (!$button) {
|
if (!$button) {
|
||||||
const $rightHeader = document.querySelector('#PageContent header div[class*=EdgewaterHeader-module__rightSectionSpacing]');
|
const $rightHeader = document.querySelector('#PageContent header div[class*=EdgewaterHeader-module__rightSectionSpacing]');
|
||||||
injectSettingsButton($rightHeader);
|
injectSettingsButton($rightHeader);
|
||||||
|
|
||||||
updateVideoPlayerCss();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -837,6 +843,8 @@ interceptHttpRequests();
|
|||||||
|
|
||||||
patchVideoApi();
|
patchVideoApi();
|
||||||
|
|
||||||
|
updateVideoPlayerCss();
|
||||||
|
|
||||||
// Workaround for Hermit browser
|
// Workaround for Hermit browser
|
||||||
var onLoadTriggered = false;
|
var onLoadTriggered = false;
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
|
Reference in New Issue
Block a user