#1505: code review

This commit is contained in:
gorhill 2016-03-26 09:23:08 -04:00
parent ff8f0eb7a9
commit 0082de83b1
2 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@
98088252cedafb8571cf61b91bea219e assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
89f1a0b14271b83ca4980a3373d5fc12 assets/ublock/experimental.txt
9f59360b851d54c30394577348b53f92 assets/ublock/resources.txt
6da87de80f42c16295856787468f1f4a assets/ublock/resources.txt
059e0bfbf22bd242dda7b07389fe09a2 assets/ublock/filter-lists.json
3605c73f21abca428c7eb69a8bc32dfe assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
a91af77c47c302c0741c7445b0fada1a assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View File

@ -980,19 +980,19 @@ overlay-buster.js application/javascript
return;
}
style = window.getComputedStyle(el);
if ( (parseInt(style.zIndex, 10) || 0) >= 1000 && style.position === 'fixed' ) {
if ( parseInt(style.zIndex, 10) >= 1000 && style.position === 'fixed' ) {
rect = el.getBoundingClientRect();
if ( rect.left <= 0 && rect.top <= 0 && rect.right >= vw && rect.bottom >= vh ) {
el.parentNode.removeChild(el);
if ( ttlTimer !== null ) {
clearTimeout(ttlTimer);
ttlTimer = setTimeout(shutdown);
}
return;
break;
}
}
el = el.parentNode;
}
el.parentNode.removeChild(el);
if ( ttlTimer !== null ) {
clearTimeout(ttlTimer);
ttlTimer = setTimeout(shutdown, 15000);
}
};
var domChangedAsync = function(mutations) {
if ( timer === null ) {