Change WestEurope server's flag to Netherlands

This commit is contained in:
redphx
2025-07-25 08:36:42 +07:00
parent dce08d33aa
commit ae47e8b369
3 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Better xCloud // @name Better xCloud
// @namespace https://github.com/redphx // @namespace https://github.com/redphx
// @version 6.7.1 // @version 6.7.2-beta
// @description Improve Xbox Cloud Gaming (xCloud) experience // @description Improve Xbox Cloud Gaming (xCloud) experience
// @author redphx // @author redphx
// @license MIT // @license MIT
@@ -194,7 +194,7 @@ class UserAgent {
}); });
} }
} }
var SCRIPT_VERSION = "6.7.1", SCRIPT_VARIANT = "full", AppInterface = window.AppInterface; var SCRIPT_VERSION = "6.7.2-beta", SCRIPT_VARIANT = "full", AppInterface = window.AppInterface;
UserAgent.init(); UserAgent.init();
var userAgent = window.navigator.userAgent.toLowerCase(), isTv = userAgent.includes("smart-tv") || userAgent.includes("smarttv") || /\baft.*\b/.test(userAgent), isVr = window.navigator.userAgent.includes("VR") && window.navigator.userAgent.includes("OculusBrowser"), browserHasTouchSupport = "ontouchstart" in window || navigator.maxTouchPoints > 0, userAgentHasTouchSupport = !isTv && !isVr && browserHasTouchSupport, STATES = { var userAgent = window.navigator.userAgent.toLowerCase(), isTv = userAgent.includes("smart-tv") || userAgent.includes("smarttv") || /\baft.*\b/.test(userAgent), isVr = window.navigator.userAgent.includes("VR") && window.navigator.userAgent.includes("OculusBrowser"), browserHasTouchSupport = "ontouchstart" in window || navigator.maxTouchPoints > 0, userAgentHasTouchSupport = !isTv && !isVr && browserHasTouchSupport, STATES = {
supportedRegion: !0, supportedRegion: !0,
@@ -9057,7 +9057,7 @@ class XcloudInterceptor {
AustraliaSouthEast: ["🇦🇺", "australia"], AustraliaSouthEast: ["🇦🇺", "australia"],
SwedenCentral: ["🇸🇪", "europe"], SwedenCentral: ["🇸🇪", "europe"],
UKSouth: ["🇬🇧", "europe"], UKSouth: ["🇬🇧", "europe"],
WestEurope: ["🇪🇺", "europe"] WestEurope: ["🇳🇱", "europe"]
}; };
static async handleLogin(request, init) { static async handleLogin(request, init) {
let bypassServer = getGlobalPref("server.bypassRestriction"); let bypassServer = getGlobalPref("server.bypassRestriction");

File diff suppressed because one or more lines are too long

View File

@@ -40,7 +40,7 @@ export class XcloudInterceptor {
// Europe // Europe
SwedenCentral: ['🇸🇪', 'europe'], SwedenCentral: ['🇸🇪', 'europe'],
UKSouth: ['🇬🇧', 'europe'], UKSouth: ['🇬🇧', 'europe'],
WestEurope: ['🇪🇺', 'europe'], WestEurope: ['🇳🇱', 'europe'],
}; };
private static async handleLogin(request: RequestInfo | URL, init?: RequestInit) { private static async handleLogin(request: RequestInfo | URL, init?: RequestInit) {