More 10.9 lazy load fixes

This commit is contained in:
Jade Macho 2024-05-13 21:24:03 +02:00
parent 926f5aae48
commit c13b69cb04
Signed by: 0x0ade
GPG Key ID: E1960710FE4FBEEF
4 changed files with 17 additions and 7 deletions

View File

@ -87,13 +87,17 @@ export default JadefinIntegrity("Jadefin", import.meta.url, () => window["Jadefi
this.webpackTryLoad = id => {
const sid = `${id}`;
const chunk = window["webpackChunk"].find(c => c[1][sid]);
const chunkNames = chunk ? chunk[0].map(this.webpackChunkIdToJS) : null;
if (chunkNames && (chunkNames.find(c =>
c.startsWith("session-login.") ||
c.startsWith("35463.")
))) {
return null;
if (!document.querySelector(".mainDrawer")) {
const chunk = window["webpackChunk"].find(c => c[1][sid]);
const chunkNames = chunk ? chunk[0].map(this.webpackChunkIdToJS) : null;
if (chunkNames && (chunkNames.find(c =>
c.startsWith("session-login.") ||
c.startsWith("syncPlay-ui-") ||
c.startsWith("35463.") ||
c.startsWith("1998.")
))) {
return null;
}
}
try {

View File

@ -75,6 +75,8 @@ export default JadefinIntegrity("ExtrasMenu", import.meta.url, () => new (class
async init(name, url) {
await super.init(name, url);
await JadefinUtils.waitUntil(() => document.querySelector(".headerRight"));
this.initStyle();
this.initHeaderExtras();
this.initDrawerExtras();

View File

@ -70,6 +70,8 @@ export default JadefinIntegrity("InputEater", import.meta.url, () => new (class
async init(name, url) {
await super.init(name, url);
await JadefinUtils.waitUntil(() => JadefinModules.syncPlay);
this.initStyle();
this.initHookSyncPlayEnabled();
this.initHookSyncPlayDisabled();

View File

@ -62,6 +62,8 @@ export default JadefinIntegrity("VolumeBoost", import.meta.url, () => new (class
async init(name, url) {
await super.init(name, url);
await JadefinUtils.waitUntil(() => JadefinModules.actionSheet);
this.initHookActionSheetShow();
document.addEventListener("viewshow", () => {