From: Steinar H. Gunderson Date: Sat, 18 Mar 2023 17:13:52 +0000 (+0100) Subject: Hide the infobox immediately when going to immersive mode. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=578882ecd71341f35e8f938442ceda1bdf74afd2;hp=6de4bf1f755b62791d9721ee3a9cfcaed53e4571;p=pr0n Hide the infobox immediately when going to immersive mode. --- 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); } }