This commit is contained in:
2026-06-05 12:47:44 +02:00
parent 5b193bc001
commit e3822254a3

View File

@@ -560,9 +560,10 @@ window.cancelAnimFrame = (function () {
document.addEventListener('f0ck:modeChanged', (e) => {
_updateNotifFilterClass(e.detail?.mode ?? 3);
});
// Apply to server-rendered /notifications page on load
document.addEventListener('DOMContentLoaded', () => window.applyNotifThumbBlur());
// Apply on hard load (F5) and on every AJAX navigation (f0ck:contentLoaded)
const _applyNotifBlurOnNav = () => window.applyNotifThumbBlur();
document.addEventListener('DOMContentLoaded', _applyNotifBlurOnNav);
document.addEventListener('f0ck:contentLoaded', _applyNotifBlurOnNav);
// ---- Multi-select Rating Toggles ----
// Reads/writes a `ratings` cookie (e.g. "sfw|untagged") and syncs with server via /mode/3 (ALL).