1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00
This commit is contained in:
gorhill 2016-07-02 11:07:12 -04:00
parent bec8243a46
commit 682e0c8916

View File

@ -1159,12 +1159,7 @@ vAPI.executionCost.start();
// Start cosmetic filtering.
var allElems = document.all;
classesAndIdsFromNodeList(
allElems instanceof Object ?
allElems :
document.querySelectorAll('[class],[id]')
);
classesAndIdsFromNodeList(document.querySelectorAll('[class],[id]'));
retrieveGenericSelectors();
//console.debug('%f: uBlock: survey time', timer.now() - tStart);
@ -1203,7 +1198,7 @@ vAPI.executionCost.start();
addedNodeListsTimer = null;
if ( addedNodeListsTimerDelay < 100 ) {
addedNodeListsTimerDelay += 25;
addedNodeListsTimerDelay += 10;
}
var iNodeList = addedNodeLists.length,
nodeList, iNode, node;