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);
},
onDocLoaded(doc, callback) {
onDocLoaded: function(doc, callback) {
if ( doc.readyState === 'loading' ) {
doc.addEventListener('DOMContentLoaded', callback);
} else {

@ -12,8 +12,7 @@
upgraded = false,
tab,
tabCache = {},
headersCache = {},
adCache = [];
headersCache = {};
w.driver = {
/**
@ -91,7 +90,7 @@
break;
case 'ad_log':
adCache.push(request.subject);
w.adCache.push(request.subject);
break;
case 'get_apps':
@ -217,11 +216,9 @@
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)); //
adCache = [];
w.adCache = [];
}
},

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

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

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