This commit is contained in:
gorhill 2016-07-02 11:07:12 -04:00
parent bec8243a46
commit 682e0c8916
1 changed files with 2 additions and 7 deletions

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;