Fixed slowness issue if FF driver

main
ElbertF 12 years ago
parent 829e17a6c8
commit 157f01df54

@ -87,7 +87,7 @@ want to port Wappalyzer to a new platform.
**PHP** **PHP**
The PHP driver requires the [V8js](http://php.net/manual/en/book.v8js.php) class. Installing V8js The PHP driver requires the [V8js](http://php.net/manual/en/book.v8js.php) class. Installing V8js
using PECL on Debian Linux or Ubuntu should be very straight forward: using [PECL](http://pecl.php.net/) on Debian Linux or Ubuntu should be very straight forward:
* `# aptitude install php5-dev php-pear libv8-dev` * `# aptitude install php5-dev php-pear libv8-dev`
* `# pecl install channel://pecl.php.net/v8js-0.1.3` * `# pecl install channel://pecl.php.net/v8js-0.1.3`

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

@ -1,6 +1,8 @@
"use strict"; "use strict";
(function() { (function() {
var lastEnv = null;
addEventListener('DOMContentLoaded', function() { addEventListener('DOMContentLoaded', function() {
removeEventListener('DOMContentLoaded', onLoad, false); removeEventListener('DOMContentLoaded', onLoad, false);
@ -8,10 +10,16 @@
}, false); }, false);
function onLoad() { function onLoad() {
if ( content.document.contentType != 'text/html' ) { return }; if ( content.document.contentType != 'text/html' ) { return; }
content.document.documentElement.addEventListener('load', function() { content.document.documentElement.addEventListener('load', function() {
var env = Object.keys(content.wrappedJSObject);
if ( env.join() !== lastEnv ) {
lastEnv = env.join();
sendAsyncMessage('wappalyzer', { env: Object.keys(content.wrappedJSObject) }); sendAsyncMessage('wappalyzer', { env: Object.keys(content.wrappedJSObject) });
}
removeEventListener('load', onLoad, true); removeEventListener('load', onLoad, true);
}, true); }, true);
@ -31,7 +39,6 @@
sendAsyncMessage('wappalyzer', { sendAsyncMessage('wappalyzer', {
hostname: content.location.hostname, hostname: content.location.hostname,
html: html, html: html,
env: Object.keys(content.wrappedJSObject),
url: content.location.href url: content.location.href
}); });
} }

@ -151,7 +151,7 @@
; ;
menuItem.bind('command', function() { menuItem.bind('command', function() {
w.driver.goToURL({ url: w.config.websiteURL + 'applications/' + app.toLowerCase().replace(/ /g, '-').replace(/[^\w]/g, '') }); w.driver.goToURL({ url: w.config.websiteURL + 'applications/' + app.toLowerCase().replace(/ /g, '-').replace(/[^\w-]/g, '') });
}); });
$('#wappalyzer-menu').append(menuItem); $('#wappalyzer-menu').append(menuItem);

@ -3,7 +3,7 @@
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest"> <Description about="urn:mozilla:install-manifest">
<em:id>wappalyzer@crunchlabz.com</em:id> <em:id>wappalyzer@crunchlabz.com</em:id>
<em:version>2.3.2</em:version> <em:version>2.3.4</em:version>
<em:type>2</em:type> <em:type>2</em:type>
<em:unpack>true</em:unpack> <em:unpack>true</em:unpack>

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B