|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="popup.css">
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var wappalyzer = {};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script src="js/lib/jquery.min.js"></script>
|
|
|
|
<script src="js/apps.js"></script>
|
|
|
|
<script src="js/locale.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="detected-apps"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$('#detected-apps').html('<div class="empty">No applications detected.</div>');
|
|
|
|
|
|
|
|
chrome.tabs.getSelected(null, function(tab) {
|
|
|
|
chrome.extension.sendRequest({ id: 'get_apps', tab: tab }, function(response) {
|
|
|
|
if ( response.tabCache.count > 0 ) {
|
|
|
|
$('#detected-apps').html('');
|
|
|
|
|
|
|
|
response.tabCache.appsDetected.map(function(appName) {
|
|
|
|
html =
|
|
|
|
'<div class="detected-app">' +
|
|
|
|
'<a target="_blank" href="http://wappalyzer.com/applications/' + encodeURIComponent(appName) + '">' +
|
|
|
|
'<img src="images/icons/' + appName + '.png"/>' +
|
|
|
|
'<span class="label">' + appName + '</span>' +
|
|
|
|
'</a>';
|
|
|
|
|
|
|
|
wappalyzer.apps[appName].cats.map(function(cat) {
|
|
|
|
html +=
|
|
|
|
'<a target="_blank" href="http://wappalyzer.com/categories/' + wappalyzer.categories[cat] + '">' +
|
|
|
|
'<span class="category">' + categoryNames[cat] + '</span>' +
|
|
|
|
'</a>';
|
|
|
|
});
|
|
|
|
|
|
|
|
html +=
|
|
|
|
'</a>' +
|
|
|
|
'</div>';
|
|
|
|
|
|
|
|
$('#detected-apps').append(html);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|