diff --git a/4chan_x.js b/4chan_x.js index 2116127cd..0beb352e0 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1977,7 +1977,7 @@ left: '0px' }, html)); threadStats.replies = 0; - threadStats.images = 1; + threadStats.images = $('.op img[md5]') ? 1 : 0; return g.callbacks.push(threadStats.node); }, node: function(root) { diff --git a/script.coffee b/script.coffee index 92c45af14..54f05a565 100644 --- a/script.coffee +++ b/script.coffee @@ -1550,7 +1550,7 @@ threadStats = html = "
Replies: 0 Images: 1
" $.append d.body, (ui.dialog 'stats', bottom: '0px', left: '0px', html) threadStats.replies = 0 - threadStats.images = 1 + threadStats.images = if $ '.op img[md5]' then 1 else 0 g.callbacks.push threadStats.node node: (root) -> return if root.className