Fix "ignoreSiglSections" patch

This commit is contained in:
redphx
2025-08-28 05:22:23 +07:00
parent 46e3cbaa05
commit d548f51e37
3 changed files with 11 additions and 11 deletions

View File

@@ -773,13 +773,13 @@ true` + text;
// home-page.js
ignoreSiglSections(str: string) {
let index = str.indexOf('SiglRow-module__heroCard___');
index >= 0 && (index = PatcherUtils.lastIndexOf(str, 'const[', index, 300));
let index = str.indexOf('SiglRow requires either id');
index >= 0 && (index = PatcherUtils.lastIndexOf(str, '})=>{', index, 300, true));
if (index < 0) {
return false;
}
const params = PatcherUtils.findAndParseParams(str, index - 500, 500);
const params = PatcherUtils.findAndParseParams(str, PatcherUtils.lastIndexOf(str, 'const', index, 1000), 1000);
if (!params || !params.id) {
return false;
}