From 45f9345e9c86d3337e7a828ad6fa35d314eeaa01 Mon Sep 17 00:00:00 2001 From: eins Date: Fri, 23 Jan 2026 14:46:39 +0000 Subject: [PATCH] fix r key on tag overview --- public/s/js/f0ck.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index c3af6a2..8deb7b2 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -140,7 +140,7 @@ window.requestAnimFrame = (function () { html = rawText; } - let container = document.querySelector('.container'); + let container = document.querySelector('#main .container'); if (!container && document.querySelector('.index-container')) { // Transition from Index to Item View @@ -148,13 +148,19 @@ window.requestAnimFrame = (function () { main.innerHTML = '
'; container = main.querySelector('.container'); } else if (container) { - // Already in Item View, clear usage - const oldContent = container.querySelector('.content'); - const oldMetadata = container.querySelector('.metadata'); - const oldHeader = container.querySelector('._204863'); - if (oldHeader) oldHeader.remove(); - if (oldContent) oldContent.remove(); - if (oldMetadata) oldMetadata.remove(); + // Check if we are on Tags Overview logic (which reuses .container) + const tagsOverview = container.querySelector('.tags'); + if (tagsOverview) { + container.innerHTML = ''; + } else { + // Already in Item View, clear usage + const oldContent = container.querySelector('.content'); + const oldMetadata = container.querySelector('.metadata'); + const oldHeader = container.querySelector('._204863'); + if (oldHeader) oldHeader.remove(); + if (oldContent) oldContent.remove(); + if (oldMetadata) oldMetadata.remove(); + } } container.insertAdjacentHTML('beforeend', html);