diff options
| author | mrmr1993 | 2014-12-17 12:47:38 +0000 | 
|---|---|---|
| committer | mrmr1993 | 2014-12-17 12:47:38 +0000 | 
| commit | 833942ae06f680bc1949a7bced4719b707950568 (patch) | |
| tree | dbd1160179b2eff5e135cdc789c141269e10598c /lib | |
| parent | 82beb23ce138505f0358ec8e15a56d20db6846dd (diff) | |
| download | vimium-833942ae06f680bc1949a7bced4719b707950568.tar.bz2 | |
Stop ignoring clickable opacity: none; elements
Some websites (notably Facebook) use `opacity: none;` to show an image in
the place of a less-customisable element (eg. an `<input type="file" />`).
To not show link hints for such transparent elements is confusing and
often the wrong thing to do.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index 8ade58bb..1e2cc812 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -60,8 +60,7 @@ DomUtils =        # eliminate invisible elements (see test_harnesses/visibility_test.html)        computedStyle = window.getComputedStyle(element, null)        if (computedStyle.getPropertyValue('visibility') != 'visible' || -          computedStyle.getPropertyValue('display') == 'none' || -          computedStyle.getPropertyValue('opacity') == '0') +          computedStyle.getPropertyValue('display') == 'none')          continue        return clientRect  | 
