刷新回子页面二修:不看 referrer,改看用户是否点过才离开(usernav);从别的应用回首页、后退照旧算回首页;防来回跳;ugc 关时不记;广场标签方案 A 压回三行 (v26110641)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-07 06:13:04 +00:00
parent c71517dc78
commit 82b9864392
129 changed files with 161 additions and 141 deletions

View File

@@ -34,7 +34,7 @@
}).catch(function () {});
function apply(v) { on = !!v; window.__mbUgc = on; de.classList.toggle('ugc-off', !on); }
function goHome() { location.replace(home + (location.hash || '')); }
function goHome() { try { localStorage.removeItem('mmbox.lastsub.v1'); } catch (e) {} location.replace(home + (location.hash || '')); } /* 11-07 别让首页「刷新回子页面」又送回来 */
apply(on);
if (guard && !on) de.style.visibility = 'hidden'; /* 还不知道开没开:先别露内容,免得关着时闪一下 */