From 6b1e8e2830ab702f46967bbd230f589e247bfb08 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 28 Oct 2018 20:14:34 +0100 Subject: Ignore hidden-by-CSS NSFW images in next/prev in image viewer Broken in 0687115f99 Fixes https://vndb.org/t2520.277 The JS check is based on https://makandracards.com/makandra/1339-check-whether-an-element-is-visible-or-hidden-with-javascript --- data/js/iv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/js/iv.js b/data/js/iv.js index 1591cc0a..fa3a6a1d 100644 --- a/data/js/iv.js +++ b/data/js/iv.js @@ -50,7 +50,7 @@ function init() { // Find the next (dir=1) or previous (dir=-1) non-hidden link object for the category. function findnav(cat, i, dir) { for(var j=i+dir; j>=0 && j 0 && cats[cat][j].offsetHeight > 0) return cats[cat][j]; return 0 } -- cgit v1.2.3