Made timeout configurable per driver

main
Elbert Alias 11 years ago
parent 5048208480
commit 68cd25bf99

8
.gitignore vendored

@ -1,4 +1,8 @@
wappalyzer-chrome.zip
wappalyzer-firefox.xpi
.windows_zip/*
!.windows_zip/Download 7-Zip.hta
drivers/**/apps.json
drivers/**/wappalyzer.js
drivers/**/icons/*.png
drivers/firefox-jetpack/data

@ -3,6 +3,7 @@ var w = wappalyzer;
w.driver = {
debug: false,
data: {},
timeout: 5000,
/**
* Log messages to console

@ -1,24 +1,24 @@
#!/bin/sh
ln -f share/images/icons drivers/firefox/skin/images/icons
ln -f share/apps.json drivers/firefox/content
ln -f share/js/wappalyzer.js drivers/firefox/content/js
ln -f share/images/icons/*.png drivers/firefox/skin/images/icons
ln -f share/apps.json drivers/firefox/content
ln -f share/js/wappalyzer.js drivers/firefox/content/js
ln -f share/images/icons drivers/firefox-jetpack/images/icons
ln -f share/apps.json drivers/firefox-jetpack/data
ln -f share/js/wappalyzer.js drivers/firefox-jetpack/lib
ln -f share/images/icons/*.png drivers/firefox-jetpack/images/icons
ln -f share/apps.json drivers/firefox-jetpack/data
ln -f share/js/wappalyzer.js drivers/firefox-jetpack/lib
ln -f share/images/icons drivers/chrome/images/icons
ln -f share/apps.json drivers/chrome
ln -f share/js/wappalyzer.js drivers/chrome/js
ln -f share/images/icons/*.png drivers/chrome/images/icons
ln -f share/apps.json drivers/chrome
ln -f share/js/wappalyzer.js drivers/chrome/js
ln -f share/images/icons drivers/bookmarklet/images/icons
ln -f share/apps.json drivers/bookmarklet/json
ln -f share/js/wappalyzer.js drivers/bookmarklet/js
ln -f share/images/icons/*.png drivers/bookmarklet/images/icons
ln -f share/apps.json drivers/bookmarklet/json
ln -f share/js/wappalyzer.js drivers/bookmarklet/js
ln -f share/images/icons drivers/html/images/icons
ln -f share/apps.json drivers/html
ln -f share/js/wappalyzer.js drivers/html/js
ln -f share/images/icons/*.png drivers/html/images/icons
ln -f share/apps.json drivers/html
ln -f share/js/wappalyzer.js drivers/html/js
ln -f share/apps.json drivers/php
ln -f share/js/wappalyzer.js drivers/php/js
ln -f share/apps.json drivers/php
ln -f share/js/wappalyzer.js drivers/php/js

@ -1,7 +1,7 @@
/**
* Wappalyzer v2
*
* Created by Elbert F <info@elbertf.com>
* Created by Elbert Alias <elbert@alias.io>
*
* License: GPLv3 http://www.gnu.org/licenses/gpl-3.0.txt
*/
@ -130,7 +130,7 @@ var wappalyzer = (function() {
this.regexCount++;
this.lastTime = new Date().getTime();
this.timedOut = this.getDuration() > 1000;
this.timedOut = this.getDuration() > ( w.driver.timeout || 1000 );
},
getDuration: function() {
@ -210,7 +210,7 @@ var wappalyzer = (function() {
environment: 'dev', // dev | live
websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer'
},
/**