|
|
|
@ -158,7 +158,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
w.detected[url].map(function(app, i) {
|
|
|
|
|
var j, cat, showCat;
|
|
|
|
|
var j, cat, showCat, categories = [];
|
|
|
|
|
|
|
|
|
|
for ( i in w.apps[app].cats ) {
|
|
|
|
|
showCat = false;
|
|
|
|
@ -168,10 +168,6 @@
|
|
|
|
|
} catch(e) { }
|
|
|
|
|
|
|
|
|
|
if ( showCat ) {
|
|
|
|
|
if ( prefs.getBoolPref('showIcons') ) {
|
|
|
|
|
$('<image>').attr('src', 'chrome://wappalyzer/skin/images/icons/' + app + '.png').attr('tooltiptext', app + ' - ' + strings.getString('wappalyzer.cat' + w.apps[app].cats[i])).prependTo(document.getElementById('wappalyzer-container'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('<menuseparator>').appendTo(document.getElementById('wappalyzer-menu'));
|
|
|
|
|
|
|
|
|
|
$('#wappalyzer-menu')
|
|
|
|
@ -185,7 +181,9 @@
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
for ( j in w.apps[app].cats ) {
|
|
|
|
|
var cat = w.apps[app].cats[j];
|
|
|
|
|
cat = w.apps[app].cats[j];
|
|
|
|
|
|
|
|
|
|
categories.push(strings.getString('wappalyzer.cat' + cat));
|
|
|
|
|
|
|
|
|
|
$('#wappalyzer-menu')
|
|
|
|
|
.append($('<menuitem>')
|
|
|
|
@ -196,6 +194,14 @@
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( prefs.getBoolPref('showIcons') ) {
|
|
|
|
|
$('<image>')
|
|
|
|
|
.attr('src', 'chrome://wappalyzer/skin/images/icons/' + app + '.png')
|
|
|
|
|
.attr('tooltiptext', app + ' - ' + categories.join(', '))
|
|
|
|
|
.prependTo(document.getElementById('wappalyzer-container'))
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|