mirror of https://github.com/gorhill/uBlock.git
Safari: element collapsing now works
This commit is contained in:
parent
7ea8187da3
commit
a97ab116f8
|
@ -786,21 +786,12 @@ var uBlockCollapser = (function() {
|
||||||
var collapser = uBlockCollapser;
|
var collapser = uBlockCollapser;
|
||||||
var elems, i, elem;
|
var elems, i, elem;
|
||||||
|
|
||||||
elems = document.querySelectorAll('embed, object');
|
elems = document.querySelectorAll('img, embed, object');
|
||||||
i = elems.length;
|
i = elems.length;
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
collapser.add(elems[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');
|
elems = document.querySelectorAll('iframe');
|
||||||
i = elems.length;
|
i = elems.length;
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
|
|
Loading…
Reference in New Issue