mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07:19 +02:00
Add new domain to ignore
This commit is contained in:
parent
78c70b5d90
commit
160044c958
1
dist/better-xcloud.lite.user.js
vendored
1
dist/better-xcloud.lite.user.js
vendored
@ -5597,6 +5597,7 @@ function interceptHttpRequests() {
|
||||
"chat.xboxlive.com",
|
||||
"notificationinbox.xboxlive.com",
|
||||
"peoplehub.xboxlive.com",
|
||||
"peoplehub-public.xboxlive.com",
|
||||
"rta.xboxlive.com",
|
||||
"userpresence.xboxlive.com",
|
||||
"xblmessaging.xboxlive.com",
|
||||
|
1
dist/better-xcloud.user.js
vendored
1
dist/better-xcloud.user.js
vendored
@ -7909,6 +7909,7 @@ function interceptHttpRequests() {
|
||||
"chat.xboxlive.com",
|
||||
"notificationinbox.xboxlive.com",
|
||||
"peoplehub.xboxlive.com",
|
||||
"peoplehub-public.xboxlive.com",
|
||||
"rta.xboxlive.com",
|
||||
"userpresence.xboxlive.com",
|
||||
"xblmessaging.xboxlive.com",
|
||||
|
@ -177,6 +177,7 @@ export function interceptHttpRequests() {
|
||||
'chat.xboxlive.com',
|
||||
'notificationinbox.xboxlive.com',
|
||||
'peoplehub.xboxlive.com',
|
||||
'peoplehub-public.xboxlive.com',
|
||||
'rta.xboxlive.com',
|
||||
'userpresence.xboxlive.com',
|
||||
'xblmessaging.xboxlive.com',
|
||||
@ -192,7 +193,7 @@ export function interceptHttpRequests() {
|
||||
let url = (typeof request === 'string') ? request : (request as Request).url;
|
||||
|
||||
// Check blocked URLs
|
||||
for (let blocked of BLOCKED_URLS) {
|
||||
for (const blocked of BLOCKED_URLS) {
|
||||
if (url.startsWith(blocked)) {
|
||||
return new Response('{"acc":1,"webResult":{}}', {
|
||||
status: 200,
|
||||
@ -201,7 +202,7 @@ export function interceptHttpRequests() {
|
||||
}
|
||||
}
|
||||
|
||||
// Ignore URLs
|
||||
// Ignore domains
|
||||
const domain = (new URL(url)).hostname;
|
||||
if (IGNORED_DOMAINS.includes(domain)) {
|
||||
return NATIVE_FETCH(request, init);
|
||||
|
Loading…
x
Reference in New Issue
Block a user