Fixed confidence, formatting

main
Elbert Alias 11 years ago
parent e9037fe766
commit 8c7015be54

@ -40,7 +40,7 @@
"categoryName33": { "message": "Web Server Extension" }, "categoryName33": { "message": "Web Server Extension" },
"categoryName34": { "message": "Database" }, "categoryName34": { "message": "Database" },
"categoryName35": { "message": "Map" }, "categoryName35": { "message": "Map" },
"categoryName36": { "message": "Advertising Network" } "categoryName36": { "message": "Advertising Network" },
"categoryName37": { "message": "Network Sevice" }, "categoryName37": { "message": "Network Sevice" },
"categoryName38": { "message": "Media Server" }, "categoryName38": { "message": "Media Server" },
"categoryName39": { "message": "Webcam" }, "categoryName39": { "message": "Webcam" },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

@ -1,18 +1,16 @@
{ "name": "Wappalyzer", { "name": "Wappalyzer",
"homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context", "homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context",
"description": "Identifies software on the web", "description": "Identifies software on the web",
"version": "2.30", "version": "2.31",
"default_locale": "en", "default_locale": "en",
"manifest_version": 2, "manifest_version": 2,
"icons": { "icons": {
"16": "images/icon_hot.png",
"32": "images/icon_32.png", "32": "images/icon_32.png",
"128": "images/icon_128.png" "128": "images/icon_128.png"
}, },
"browser_action": { "browser_action": {
"default_icon": { "default_icon": "images/icon_32.png",
"19": "images/icon_19.png",
"38": "images/icon_38.png"
},
"default_title": "Wappalyzer - click for details", "default_title": "Wappalyzer - click for details",
"default_popup": "popup.html" "default_popup": "popup.html"
}, },

@ -8,7 +8,7 @@
"description": "Identifies software on the web", "description": "Identifies software on the web",
"author": "Elbert Alias", "author": "Elbert Alias",
"license": "GPLv3", "license": "GPLv3",
"version": "3.0.0", "version": "3.0.1",
"main": "driver", "main": "driver",
"preferences": [{ "preferences": [{
"name": "tracking", "name": "tracking",

@ -1138,6 +1138,7 @@
"env": "^Handlebars$" "env": "^Handlebars$"
}, },
"Hello Bar": { "Hello Bar": {
"website": "hellobar.com",
"cats": [ 5 ], "cats": [ 5 ],
"script": "(hellobar\\.com/hellobar\\.js|new HelloBar)", "script": "(hellobar\\.com/hellobar\\.js|new HelloBar)",
"html": "/hellobar\\.js" "html": "/hellobar\\.js"

@ -14,7 +14,7 @@ var wappalyzer = (function() {
*/ */
var Application = function(app, detected) { var Application = function(app, detected) {
this.app = app; this.app = app;
this.confidence = []; this.confidence = {};
this.confidenceTotal = 0; this.confidenceTotal = 0;
this.detected = Boolean(detected); this.detected = Boolean(detected);
this.version = ''; this.version = '';
@ -66,7 +66,7 @@ var wappalyzer = (function() {
this.detected = true; this.detected = true;
// Set confidence level // Set confidence level
this.confidence.push(pattern.confidence ? pattern.confidence : 100); this.confidence[type + ' ' + ( key ? key + ' ' : '' ) + pattern.regex] = pattern.confidence ? pattern.confidence : 100;
// Detect version number // Detect version number
if ( pattern.version ) { if ( pattern.version ) {
@ -419,7 +419,7 @@ var wappalyzer = (function() {
// Apply app confidence to implied app // Apply app confidence to implied app
for ( id in confidence ) { for ( id in confidence ) {
apps[implied.string].confidence.push(confidence[id] * ( implied.confidence ? implied.confidence / 100 : 1 )); apps[implied.string].confidence[id + ' implied by ' + app] = confidence[id] * ( implied.confidence ? implied.confidence / 100 : 1 );
} }
}); });
} }

Loading…
Cancel
Save