From 8c0a3bdaaa32550e874942a7e9b00c2409563597 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sun, 12 Jul 2026 21:15:16 +0200 Subject: [PATCH] Revert "fuck chrome" This reverts commit 9473293ed269a2180bd372b416f2639a68689dd8. --- public/s/js/f0ckm.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index a90f1aa..6d9e21d 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -3695,15 +3695,6 @@ window.cancelAnimFrame = (function () { targetUrl = targetUrl.replace(/[?&]strict=1/, '').replace(/[?&]$/, ''); } - // Same-URL no-op guard: if we are already on this grid page (no hash, no different params), - // just scroll to top instead of tearing down and reloading all thumbnails. - const targetUrlNoHash = targetUrl.split('#')[0]; - const currentUrlNoHash = window.location.href.split('#')[0]; - if (targetUrlNoHash === currentUrlNoHash && !anyLink.hash && document.querySelector('.posts')) { - window.scrollTo({ top: 0, behavior: 'smooth' }); - return false; - } - const parts = pathname.split('/').filter(Boolean); const isItemLink = !pathname.match(/\/p\//) && ( pathname.match(/^\/\d+/) ||