From 16731e566bacf2f3c9ea1e710c251a6a6ea7ef0f Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Tue, 27 Jan 2026 10:56:41 +0100 Subject: [PATCH] infinity scroll disable on profiles --- public/s/js/f0ck.js | 2 +- views/user.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index 2836b67..8a71e07 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -763,7 +763,7 @@ window.requestAnimFrame = (function () { // const postsContainer = document.querySelector("div.posts"); - if (postsContainer) { + if (postsContainer && !postsContainer.classList.contains('no-infinite-scroll')) { // Infinite scroll state let infiniteState = { loading: false, diff --git a/views/user.html b/views/user.html index 2bf9cf2..527f4f4 100644 --- a/views/user.html +++ b/views/user.html @@ -21,7 +21,7 @@ f0ck{{ count.f0cks == 1 ? '' : 's' }}: {{ count.f0cks }} view all @if(count.f0cks) -
+
@each(f0cks.items as item) view all
@if(count.favs) -
+
@each(favs.items as item)