From 19415b0efa37fda72c48e1977090bb18079d25db Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 9 Jun 2013 11:22:05 +1000 Subject: [PATCH] Fixed Chrome driver running twice --- drivers/bookmarklet/js/wappalyzer.js | 2 -- drivers/chrome/background.html | 1 - drivers/chrome/js/background.js | 3 --- drivers/chrome/js/driver.js | 4 ++-- drivers/chrome/js/wappalyzer.js | 2 -- drivers/firefox-jetpack/lib/wappalyzer.js | 2 -- drivers/firefox/content/js/wappalyzer.js | 2 -- drivers/html/js/wappalyzer.js | 2 -- drivers/php/js/wappalyzer.js | 2 -- share/js/wappalyzer.js | 2 -- 10 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 drivers/chrome/js/background.js diff --git a/drivers/bookmarklet/js/wappalyzer.js b/drivers/bookmarklet/js/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/drivers/bookmarklet/js/wappalyzer.js +++ b/drivers/bookmarklet/js/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex); diff --git a/drivers/chrome/background.html b/drivers/chrome/background.html index b273a4360..3abbe7968 100644 --- a/drivers/chrome/background.html +++ b/drivers/chrome/background.html @@ -8,7 +8,6 @@ - diff --git a/drivers/chrome/js/background.js b/drivers/chrome/js/background.js deleted file mode 100644 index e354989a4..000000000 --- a/drivers/chrome/js/background.js +++ /dev/null @@ -1,3 +0,0 @@ -wappalyzer.log('bg.html'); - -wappalyzer.init(); diff --git a/drivers/chrome/js/driver.js b/drivers/chrome/js/driver.js index ff6135a2a..514daf50e 100644 --- a/drivers/chrome/js/driver.js +++ b/drivers/chrome/js/driver.js @@ -101,7 +101,7 @@ } }); - chrome.tabs.getAllInWindow(null, function(tabs) { + chrome.tabs.query({}, function(tabs) { tabs.map(function(tab) { if ( tab.url.match(/^https?:\/\//) ) { chrome.tabs.executeScript(tab.id, { file: 'js/content.js' }); @@ -233,4 +233,4 @@ }; w.init(); -})(); +}()); diff --git a/drivers/chrome/js/wappalyzer.js b/drivers/chrome/js/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/drivers/chrome/js/wappalyzer.js +++ b/drivers/chrome/js/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex); diff --git a/drivers/firefox-jetpack/lib/wappalyzer.js b/drivers/firefox-jetpack/lib/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/drivers/firefox-jetpack/lib/wappalyzer.js +++ b/drivers/firefox-jetpack/lib/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex); diff --git a/drivers/firefox/content/js/wappalyzer.js b/drivers/firefox/content/js/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/drivers/firefox/content/js/wappalyzer.js +++ b/drivers/firefox/content/js/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex); diff --git a/drivers/html/js/wappalyzer.js b/drivers/html/js/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/drivers/html/js/wappalyzer.js +++ b/drivers/html/js/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex); diff --git a/drivers/php/js/wappalyzer.js b/drivers/php/js/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/drivers/php/js/wappalyzer.js +++ b/drivers/php/js/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex); diff --git a/share/js/wappalyzer.js b/share/js/wappalyzer.js index fa651e966..3bb3d9ad2 100644 --- a/share/js/wappalyzer.js +++ b/share/js/wappalyzer.js @@ -299,8 +299,6 @@ var wappalyzer = (function() { break; } - w.log('xxxxxxxxxxxxx'+data.html.length); - parse(w.apps[app][type]).map(function(pattern) { profiler.checkPoint(app, type, pattern.regex);