Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 2, 2016
1 parent bec8243 commit 682e0c8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/js/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1203,7 +1198,7 @@ vAPI.executionCost.start();

addedNodeListsTimer = null;
if ( addedNodeListsTimerDelay < 100 ) {
addedNodeListsTimerDelay += 25;
addedNodeListsTimerDelay += 10;
}
var iNodeList = addedNodeLists.length,
nodeList, iNode, node;
Expand Down

0 comments on commit 682e0c8

Please sign in to comment.