完善游戏通知文案与屏蔽逻辑

This commit is contained in:
pllx
2026-04-29 15:06:01 +08:00
parent 6ae452c4b9
commit c640a31302
7 changed files with 199 additions and 45 deletions
+8 -1
View File
@@ -50,12 +50,19 @@ function appendFishingMessage(html) {
return;
}
const blockedSet = window.chatState?.blockedSystemSenders;
const isBlocked = blockedSet instanceof Set && blockedSet.has("钓鱼播报");
const line = document.createElement("div");
line.className = "msg-line";
line.dataset.blockKey = "钓鱼播报";
if (isBlocked) {
line.dataset.blockHidden = "1";
line.style.display = "none";
}
line.innerHTML = html;
container.appendChild(line);
if (shouldAutoScroll()) {
if (!isBlocked && shouldAutoScroll()) {
container.scrollTop = container.scrollHeight;
}
}