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.

31 lines
794 B

13 years ago
"use strict";
(function() {
addEventListener('DOMContentLoaded', onLoad, false);
function onLoad() {
if ( content.document.contentType != 'text/html' ) { return };
// HTML
var html = content.document.documentElement.outerHTML;
// Comments outside HTML
//if ( content.document.lastChild.nodeType === 8 ) {
//content.alert(content.document.lastChild.nodeValue);
//}
if ( html.length > 50000 ) {
html = html.substring(0, 25000) + html.substring(html.length - 25000, html.length);
}
sendAsyncMessage('wappalyzer', {
hostname: content.location.hostname,
html: html,
13 years ago
env: Object.keys(content.wrappedJSObject),
url: content.location.href
});
removeEventListener('DOMContentLoaded', onLoad, false);
}
})();