mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Update better-xcloud.user.js
This commit is contained in:
parent
6438e533d6
commit
e21375821d
12
dist/better-xcloud.user.js
vendored
12
dist/better-xcloud.user.js
vendored
@ -3878,6 +3878,10 @@ class LoadingScreen {
|
|||||||
#game-stream div[class*=RocketAnimation-module__container] > svg {
|
#game-stream div[class*=RocketAnimation-module__container] > svg {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#game-stream video[class*=RocketAnimationVideo-module__video] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
$bgStyle.textContent += css;
|
$bgStyle.textContent += css;
|
||||||
}
|
}
|
||||||
@ -3966,8 +3970,8 @@ class LoadingScreen {
|
|||||||
LoadingScreen.reset();
|
LoadingScreen.reset();
|
||||||
}
|
}
|
||||||
static reset() {
|
static reset() {
|
||||||
|
LoadingScreen.#$bgStyle && setTimeout(() => LoadingScreen.#$bgStyle.textContent = "", 2000);
|
||||||
LoadingScreen.#$waitTimeBox && LoadingScreen.#$waitTimeBox.classList.add("bx-gone");
|
LoadingScreen.#$waitTimeBox && LoadingScreen.#$waitTimeBox.classList.add("bx-gone");
|
||||||
LoadingScreen.#$bgStyle && (LoadingScreen.#$bgStyle.textContent = "");
|
|
||||||
LoadingScreen.#waitTimeInterval && clearInterval(LoadingScreen.#waitTimeInterval);
|
LoadingScreen.#waitTimeInterval && clearInterval(LoadingScreen.#waitTimeInterval);
|
||||||
LoadingScreen.#waitTimeInterval = null;
|
LoadingScreen.#waitTimeInterval = null;
|
||||||
}
|
}
|
||||||
@ -5108,11 +5112,11 @@ var resizeVideoPlayer = function() {
|
|||||||
width = parentRect.width;
|
width = parentRect.width;
|
||||||
height = width / videoRatio;
|
height = width / videoRatio;
|
||||||
}
|
}
|
||||||
width = Math.floor(width);
|
width = Math.min(parentRect.width, Math.ceil(width));
|
||||||
height = Math.floor(height);
|
height = Math.min(parentRect.height, Math.ceil(height));
|
||||||
$video.style.width = `${width}px`;
|
$video.style.width = `${width}px`;
|
||||||
$video.style.height = `${height}px`;
|
$video.style.height = `${height}px`;
|
||||||
$video.style.objectFit = "scale-down";
|
$video.style.objectFit = "fill";
|
||||||
} else {
|
} else {
|
||||||
$video.style.width = "100%";
|
$video.style.width = "100%";
|
||||||
$video.style.height = "100%";
|
$video.style.height = "100%";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user