Update better-xcloud.user.js

This commit is contained in:
redphx 2024-05-08 08:55:10 +07:00
parent 8e23ca51de
commit 4e8848d2fb

View File

@ -7683,12 +7683,10 @@ function interceptHttpRequests() {
const response = await NATIVE_FETCH(request, init); const response = await NATIVE_FETCH(request, init);
const obj = await response.clone().json(); const obj = await response.clone().json();
if (url.includes(GamePassCloudGallery.ALL)) { if (url.includes(GamePassCloudGallery.ALL)) {
debugger;
for (let i = 1;i < obj.length; i++) { for (let i = 1;i < obj.length; i++) {
gamepassAllGames.push(obj[i].id); gamepassAllGames.push(obj[i].id);
} }
} else if (url.includes(GamePassCloudGallery.TOUCH)) { } else if (url.includes(GamePassCloudGallery.TOUCH)) {
debugger;
try { try {
let customList = TouchController.getCustomList(); let customList = TouchController.getCustomList();
customList = customList.filter((id2) => gamepassAllGames.includes(id2)); customList = customList.filter((id2) => gamepassAllGames.includes(id2));