From 682e0c89163e1870757ae73be26af762cafca53d Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 2 Jul 2016 11:07:12 -0400 Subject: [PATCH] fix #1773 --- src/js/contentscript.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index aa14048a2..924b27b29 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -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;