From a97ab116f8370d79fdb57abcf4a0a6b6b0d4c92a Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 5 May 2015 20:43:37 -0600 Subject: [PATCH] Safari: element collapsing now works --- src/js/contentscript-end.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/js/contentscript-end.js b/src/js/contentscript-end.js index 3841f7915..b997e2ad9 100644 --- a/src/js/contentscript-end.js +++ b/src/js/contentscript-end.js @@ -786,21 +786,12 @@ var uBlockCollapser = (function() { var collapser = uBlockCollapser; var elems, i, elem; - elems = document.querySelectorAll('embed, object'); + elems = document.querySelectorAll('img, embed, object'); i = elems.length; while ( i-- ) { collapser.add(elems[i]); } - elems = document.querySelectorAll('img'); - i = elems.length; - while ( i-- ) { - elem = elems[i]; - if ( elem.complete ) { - collapser.add(elem); - } - } - elems = document.querySelectorAll('iframe'); i = elems.length; while ( i-- ) {