mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-07-01 03:41:44 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
a81c6621a8 | |||
edc11b3b48 | |||
c333fffab7 | |||
8c904897b8 | |||
683709f980 | |||
4562ef8f19 |
1
build.ts
1
build.ts
@ -27,6 +27,7 @@ const postProcess = (str: string): string => {
|
||||
|
||||
// Remove enum's inlining comments
|
||||
str = str.replaceAll(/ \/\* [A-Z0-9_]+ \*\//g, '');
|
||||
str = str.replaceAll('/* @__PURE__ */ ', '');
|
||||
|
||||
// Remove comments from import
|
||||
str = str.replaceAll(/\/\/ src.*\n/g, '');
|
||||
|
2
dist/better-xcloud.meta.js
vendored
2
dist/better-xcloud.meta.js
vendored
@ -1,5 +1,5 @@
|
||||
// ==UserScript==
|
||||
// @name Better xCloud
|
||||
// @namespace https://github.com/redphx
|
||||
// @version 5.5.3
|
||||
// @version 5.5.4
|
||||
// ==/UserScript==
|
||||
|
14
dist/better-xcloud.user.js
vendored
14
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.1.6",
|
||||
"@types/node": "^20.14.12",
|
||||
"@types/node": "^20.14.14",
|
||||
"@types/stylus": "^0.48.42",
|
||||
"eslint": "^9.8.0",
|
||||
"eslint-plugin-compat": "^6.0.0",
|
||||
|
@ -245,10 +245,10 @@
|
||||
.bx-settings-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
border-bottom: 1px solid #2c2c2e;
|
||||
padding: 16px 8px;
|
||||
padding: 16px 10px;
|
||||
margin: 0;
|
||||
border-left: 2px solid transparent;
|
||||
background: #2a2a2a;
|
||||
border-bottom: 1px solid #343434;
|
||||
|
||||
&:hover, &:focus-within {
|
||||
background-color: #242424;
|
||||
@ -265,9 +265,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
&:has(input:focus), &:has(select:focus), &:has(button:focus) {
|
||||
border-left-color: white;
|
||||
}
|
||||
*/
|
||||
|
||||
> span.bx-settings-label {
|
||||
font-size: 14px;
|
||||
@ -379,3 +381,26 @@
|
||||
font-weight: normal;
|
||||
color: #828282;
|
||||
}
|
||||
|
||||
.bx-settings-tab-contents {
|
||||
> div {
|
||||
// Label at the beginning
|
||||
*:not(.bx-settings-row):has(+ .bx-settings-row) + .bx-settings-row:has(+ .bx-settings-row) {
|
||||
border-top-left-radius: 10px;
|
||||
border-top-right-radius: 10px;
|
||||
}
|
||||
|
||||
// Label at the end
|
||||
.bx-settings-row:not(:has(+ .bx-settings-row)) {
|
||||
border: none;
|
||||
border-bottom-left-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
}
|
||||
|
||||
// Single label
|
||||
*:not(.bx-settings-row):has(+ .bx-settings-row) + .bx-settings-row:not(:has(+ .bx-settings-row)) {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,12 +3,14 @@ import { t } from "@/utils/translation"
|
||||
export const BypassServers = {
|
||||
'br': t('brazil'),
|
||||
'jp': t('japan'),
|
||||
'kr': t('korea'),
|
||||
'pl': t('poland'),
|
||||
'us': t('united-states'),
|
||||
}
|
||||
|
||||
export const BypassServerIps = {
|
||||
export const BypassServerIps: Record<keyof typeof BypassServers, string> = {
|
||||
'br': '169.150.198.66',
|
||||
'kr': '121.125.60.151',
|
||||
'jp': '138.199.21.239',
|
||||
'pl': '45.134.212.66',
|
||||
'us': '143.244.47.65',
|
||||
|
@ -208,7 +208,7 @@ export class StreamUiHandler {
|
||||
$dotsButton.parentElement!.insertBefore($dotsButton, $dotsButton.parentElement!.firstElementChild);
|
||||
}
|
||||
|
||||
private static reset() {
|
||||
static reset() {
|
||||
StreamUiHandler.$btnStreamSettings = undefined;
|
||||
StreamUiHandler.$btnStreamStats = undefined;
|
||||
StreamUiHandler.$btnRefresh = undefined;
|
||||
@ -273,5 +273,6 @@ export class StreamUiHandler {
|
||||
});
|
||||
|
||||
observer.observe($screen, {subtree: true, childList: true});
|
||||
StreamUiHandler.observer = observer;
|
||||
}
|
||||
}
|
||||
|
@ -129,6 +129,7 @@ const Texts = {
|
||||
"install-android": "Better xCloud app for Android",
|
||||
"japan": "Japan",
|
||||
"keyboard-shortcuts": "Keyboard shortcuts",
|
||||
"korea": "Korea",
|
||||
"language": "Language",
|
||||
"large": "Large",
|
||||
"layout": "Layout",
|
||||
|
Reference in New Issue
Block a user