Fixed to ad detection script

main
Elbert Alias 9 years ago
parent 6d895ddf9a
commit 477a397fd3

@ -67,7 +67,7 @@ var exports = {};
return Array.prototype.slice.apply(a); return Array.prototype.slice.apply(a);
}, },
onDocLoaded(doc, callback) { onDocLoaded: function(doc, callback) {
if ( doc.readyState === 'loading' ) { if ( doc.readyState === 'loading' ) {
doc.addEventListener('DOMContentLoaded', callback); doc.addEventListener('DOMContentLoaded', callback);
} else { } else {

@ -12,8 +12,7 @@
upgraded = false, upgraded = false,
tab, tab,
tabCache = {}, tabCache = {},
headersCache = {}, headersCache = {};
adCache = [];
w.driver = { w.driver = {
/** /**
@ -91,7 +90,7 @@
break; break;
case 'ad_log': case 'ad_log':
adCache.push(request.subject); w.adCache.push(request.subject);
break; break;
case 'get_apps': case 'get_apps':
@ -217,11 +216,9 @@
w.ping = { hostnames: {} }; w.ping = { hostnames: {} };
w.driver.post('https://ad.wappalyzer.com/log/wp/', adCache); w.driver.post('https://ad.wappalyzer.com/log/wp/', w.adCache);
w.log('adCache: ' + JSON.stringify(adCache)); // w.adCache = [];
adCache = [];
} }
}, },

@ -1,7 +1,7 @@
{ "name": "Wappalyzer", { "name": "Wappalyzer",
"homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context", "homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context",
"description": "Identifies software on the web", "description": "Identifies software on the web",
"version": "2.40", "version": "2.41",
"default_locale": "en", "default_locale": "en",
"manifest_version": 2, "manifest_version": 2,
"icons": { "icons": {

@ -196,7 +196,7 @@ var wappalyzer = (function() {
apps: {}, apps: {},
cats: null, cats: null,
ping: { hostnames: {} }, ping: { hostnames: {} },
adCache: [], adCache: [],
detected: {}, detected: {},
config: { config: {

@ -196,7 +196,7 @@ var wappalyzer = (function() {
apps: {}, apps: {},
cats: null, cats: null,
ping: { hostnames: {} }, ping: { hostnames: {} },
adCache: [], adCache: [],
detected: {}, detected: {},
config: { config: {