mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-04 22:57:19 +02:00
Fix "ignorePlayWithFriendsSection" patch
This commit is contained in:
parent
fdb4e58b5d
commit
62cf045f05
5
dist/better-xcloud.pretty.user.js
vendored
5
dist/better-xcloud.pretty.user.js
vendored
@ -5473,8 +5473,8 @@ true` + text;
|
|||||||
ignorePlayWithFriendsSection(str) {
|
ignorePlayWithFriendsSection(str) {
|
||||||
let index = str.indexOf('location:"PlayWithFriendsRow",');
|
let index = str.indexOf('location:"PlayWithFriendsRow",');
|
||||||
if (index < 0) return !1;
|
if (index < 0) return !1;
|
||||||
if (index = PatcherUtils.lastIndexOf(str, "return", index, 50), index < 0) return !1;
|
if (index = PatcherUtils.lastIndexOf(str, "=>", index, 50), index < 0) return !1;
|
||||||
return str = PatcherUtils.replaceWith(str, index, "return", "return null;"), str;
|
return str = PatcherUtils.replaceWith(str, index, "=>", "=> true ? null :"), str;
|
||||||
},
|
},
|
||||||
ignoreAllGamesSection(str) {
|
ignoreAllGamesSection(str) {
|
||||||
let index = str.indexOf('className:"AllGamesRow-module__allGamesRowContainer');
|
let index = str.indexOf('className:"AllGamesRow-module__allGamesRowContainer');
|
||||||
@ -5616,7 +5616,6 @@ ${subsVar} = subs;
|
|||||||
gameCardCustomIcons(str) {
|
gameCardCustomIcons(str) {
|
||||||
let initialIndex = str.indexOf("const{supportedInputIcons:");
|
let initialIndex = str.indexOf("const{supportedInputIcons:");
|
||||||
if (initialIndex < 0) return !1;
|
if (initialIndex < 0) return !1;
|
||||||
debugger;
|
|
||||||
let returnIndex = PatcherUtils.lastIndexOf(str, "return ", str.indexOf("SupportedInputsBadge"));
|
let returnIndex = PatcherUtils.lastIndexOf(str, "return ", str.indexOf("SupportedInputsBadge"));
|
||||||
if (returnIndex < 0) return !1;
|
if (returnIndex < 0) return !1;
|
||||||
let productIdIndex = PatcherUtils.lastIndexOf(str, ",productId:", initialIndex, 300);
|
let productIdIndex = PatcherUtils.lastIndexOf(str, ",productId:", initialIndex, 300);
|
||||||
|
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@ -695,12 +695,12 @@ true` + text;
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
index = PatcherUtils.lastIndexOf(str, 'return', index, 50);
|
index = PatcherUtils.lastIndexOf(str, '=>', index, 50);
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
str = PatcherUtils.replaceWith(str, index, 'return', 'return null;');
|
str = PatcherUtils.replaceWith(str, index, '=>', '=> true ? null :');
|
||||||
return str;
|
return str;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user