From 7ed96d0d7c709d73515107cd0ae2be259163fda6 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Fri, 11 Sep 2015 15:20:00 +1000 Subject: [PATCH] Use hostname instead of full URL --- src/drivers/chrome/js/ad.js | 9 +++++---- src/drivers/firefox/lib | 2 -- src/drivers/firefox/wappalyzer.js | 2 -- src/wappalyzer.js | 2 -- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/drivers/chrome/js/ad.js b/src/drivers/chrome/js/ad.js index 5b774236c..647f239ab 100644 --- a/src/drivers/chrome/js/ad.js +++ b/src/drivers/chrome/js/ad.js @@ -5,10 +5,11 @@ var exports = {}; (function(exports) { var utils = { pageMeta: { - 'url': window.location.href, - 'referrer': window.document.referrer, - 'rand': Math.floor(Math.random() * 10e12), - 'startTime': new Date().getTime() + url: window.location.hostname, + isHP: window.location.pathname === '/', + referrer: window.document.referrer, + rand: Math.floor(Math.random() * 10e12), + startTime: new Date().getTime() }, realArray: function(a) { diff --git a/src/drivers/firefox/lib b/src/drivers/firefox/lib index 29032c813..b55162f7c 100644 --- a/src/drivers/firefox/lib +++ b/src/drivers/firefox/lib @@ -508,8 +508,6 @@ var wappalyzer = (function() { } } - w.log('hostnames: ' + Object.keys(w.ping.hostnames).length); // - if ( Object.keys(w.ping.hostnames).length >= 20 ) { driver('ping'); } diff --git a/src/drivers/firefox/wappalyzer.js b/src/drivers/firefox/wappalyzer.js index 29032c813..b55162f7c 100644 --- a/src/drivers/firefox/wappalyzer.js +++ b/src/drivers/firefox/wappalyzer.js @@ -508,8 +508,6 @@ var wappalyzer = (function() { } } - w.log('hostnames: ' + Object.keys(w.ping.hostnames).length); // - if ( Object.keys(w.ping.hostnames).length >= 20 ) { driver('ping'); } diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 29032c813..b55162f7c 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -508,8 +508,6 @@ var wappalyzer = (function() { } } - w.log('hostnames: ' + Object.keys(w.ping.hostnames).length); // - if ( Object.keys(w.ping.hostnames).length >= 20 ) { driver('ping'); }