From 2286448b6839251aa490c226cb2384a14b937662 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 19 Sep 2017 21:55:25 +0900 Subject: [PATCH] use offsetHeight to check element visibility --- src/content/follow.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/follow.js b/src/content/follow.js index 7d69b45..eedd1ed 100644 --- a/src/content/follow.js +++ b/src/content/follow.js @@ -142,6 +142,7 @@ export default class Follow { return style.display !== 'none' && style.visibility !== 'hidden' && element.type !== 'hidden' && + element.offsetHeight > 0 && Follow.inWindow(window, element); }); return filtered;