From 578882ecd71341f35e8f938442ceda1bdf74afd2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 18 Mar 2023 18:13:52 +0100 Subject: [PATCH] Hide the infobox immediately when going to immersive mode. --- files/pr0n-fullscreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 75ef1f8..7f5aed6 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -317,7 +317,7 @@ function update_shown_images() // inum !== global_image_num + 1) { // to_remove.push(child); //} - if (inum !== global_image_num) { + if (inum !== global_image_num || (child.className === "fsbox" && !global_infobox)) { to_remove.push(child); } } -- 2.39.5