You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
979 B
48 lines
979 B
(function() {
|
|
if ( wappalyzer == null ) return;
|
|
|
|
var w = wappalyzer;
|
|
|
|
w.driver = {
|
|
/**
|
|
* Log messages to console
|
|
*/
|
|
log: function(args) {
|
|
if ( console != null ) console[args.type](args.message);
|
|
},
|
|
|
|
/**
|
|
* Initialize
|
|
*/
|
|
init: function() {
|
|
window.document.addEventListener('DOMContentLoaded', function() {
|
|
w.analyze('google.com', 'http://google.com', {
|
|
html: '<script src="jquery.js"><meta name="generator" content="WordPress"/>',
|
|
headers: { 'Server': 'Apache' },
|
|
env: [ 'Mootools' ]
|
|
});
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Display apps
|
|
*/
|
|
displayApps: function() {
|
|
document.getElementById('apps').innerHTML = '';
|
|
|
|
w.detected['http://google.com'].map(function(app) {
|
|
document.getElementById('apps').innerHTML += '<img src="images/icons/' + app + '.png" width="16" height="16"/> ' + app + '<br/>';
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Go to URL
|
|
*/
|
|
goToURL: function(args) {
|
|
window.open(args.url);
|
|
}
|
|
};
|
|
|
|
w.init();
|
|
})();
|