diff --git a/content/hints.js b/content/hints.js index 2320dea5..1237b90b 100644 --- a/content/hints.js +++ b/content/hints.js @@ -107,6 +107,10 @@ liberator.Hints = function () //{{{ if (!rect) continue; + var computedStyle = doc.defaultView.getComputedStyle(elem, null); + if (computedStyle.getPropertyValue("visibility") == "hidden" || computedStyle.getPropertyValue("display") == "none") + continue; + // TODO: mozilla docs recommend localName instead of tagName tagname = elem.tagName.toLowerCase(); if (tagname == "input" || tagname == "textarea")