Confidence levels

main
Elbert Alias 13 years ago
parent 7877da87c1
commit 94d17f1534

@ -27,14 +27,15 @@ Example:
```javascript
"Application Name": {
cats: [ "1" ],
headers: { "X-Powered-By": "Application Name" },
url: ".+\\.application-name\\.com",
html: "<link[^>]application-name\\.css",
meta: { "generator": "Application Name" },
script: "application-name\\.js",
env: "ApplicationName",
implies: [ "PHP" ]
"cats": [ 1 ],
"headers": { "X-Powered-By": "Application Name" },
"url": ".+\\.application-name\\.com",
"html": "<link[^>]application-name\\.css",
"meta": { "generator": "Application Name" },
"script": "application-name\\.js",
"env": "ApplicationName",
"implies": [ "PHP" ],
"confidence": { "html": 50, "script": 50 }
}
```

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],

@ -140,13 +140,10 @@
if ( count > 0 ) {
// Find the main application to display
var i, appName, confidence, found = false;
var i, appName, found = false;
w.driver.categoryOrder.map(function(match) {
for ( appName in w.detected[tab.url] ) {
confidence = w.detected[tab.url][appName].total;
w.apps[appName].cats.map(function(cat) {
if ( cat == match && !found ) {
chrome.browserAction.setIcon({ tabId: tab.id, path: 'images/icons/' + appName + '.png' });

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],

@ -814,6 +814,7 @@
"headers": { "X-Content-Encoded-By": "Joomla" },
"env": "^jcomments$",
"implies": [ "PHP" ]
"confidence": { "html": 50, "url": 50 }
},
"jqPlot": {
"cats": [ 25 ],
@ -930,7 +931,8 @@
"script": "(js/mage|skin/frontend/(default|enterprise))",
"headers": { "Set-Cookie": "frontend=" },
"env": "^(Mage|VarienForm)$",
"implies": [ "PHP" ]
"implies": [ "PHP" ],
"confidence": { "headers": 50 }
},
"Mambo": {
"cats": [ 1 ],