From 696b0c3ea16f2706f59247dd06658f7d72c89d50 Mon Sep 17 00:00:00 2001 From: ejqs <62688314+ejqs@users.noreply.github.com> Date: Sat, 21 Jun 2025 18:24:13 +0800 Subject: [PATCH] Fix bug that requires clicking projection again to view projection. --- projections.user.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projections.user.js b/projections.user.js index e6bf298..bd3a7a5 100644 --- a/projections.user.js +++ b/projections.user.js @@ -253,6 +253,15 @@ window.wkof.ItemData.get_items("subjects, assignments").then(items => { // Enable callback when we enter the progression page window.wkof.on("wkstats.projections.loaded", () => P.api(userData, levels, systems, items)); + if (location.pathname.includes("projections")) { + const checkExist = setInterval(() => { + const container = document.querySelector(".main-content .projections"); + if (container) { + clearInterval(checkExist); + P.api(userData, levels, systems, items); + } + }, 100); + } }); }); });