|
|
@ -14,7 +14,7 @@ wappalyzer =
|
|
|
|
checkUnique: [],
|
|
|
|
checkUnique: [],
|
|
|
|
currentTab: false,
|
|
|
|
currentTab: false,
|
|
|
|
prefs: null,
|
|
|
|
prefs: null,
|
|
|
|
autoDetect: 1,
|
|
|
|
autoDetect: true,
|
|
|
|
enableTracking: true,
|
|
|
|
enableTracking: true,
|
|
|
|
newInstall: false,
|
|
|
|
newInstall: false,
|
|
|
|
showAppNames: 3,
|
|
|
|
showAppNames: 3,
|
|
|
@ -231,17 +231,17 @@ wappalyzer =
|
|
|
|
wappalyzer.prefs.QueryInterface(Components.interfaces.nsIPrefBranch2);
|
|
|
|
wappalyzer.prefs.QueryInterface(Components.interfaces.nsIPrefBranch2);
|
|
|
|
wappalyzer.prefs.addObserver('', wappalyzer, false);
|
|
|
|
wappalyzer.prefs.addObserver('', wappalyzer, false);
|
|
|
|
|
|
|
|
|
|
|
|
wappalyzer.autoDetect = wappalyzer.prefs.getIntPref( 'autoDetect');
|
|
|
|
|
|
|
|
wappalyzer.showAppNames = wappalyzer.prefs.getIntPref( 'showAppNames');
|
|
|
|
wappalyzer.showAppNames = wappalyzer.prefs.getIntPref( 'showAppNames');
|
|
|
|
|
|
|
|
wappalyzer.autoDetect = wappalyzer.prefs.getBoolPref('autoDetect');
|
|
|
|
wappalyzer.enableTracking = wappalyzer.prefs.getBoolPref('enableTracking');
|
|
|
|
wappalyzer.enableTracking = wappalyzer.prefs.getBoolPref('enableTracking');
|
|
|
|
wappalyzer.newInstall = wappalyzer.prefs.getBoolPref('newInstall');
|
|
|
|
wappalyzer.newInstall = wappalyzer.prefs.getBoolPref('newInstall');
|
|
|
|
|
|
|
|
|
|
|
|
// Show splash page after installation
|
|
|
|
// Open page after installation
|
|
|
|
if ( wappalyzer.newInstall )
|
|
|
|
if ( wappalyzer.newInstall )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
wappalyzer.addTab(wappalyzer.homeUrl + 'install/success/');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wappalyzer.prefs.setBoolPref('newInstall', false);
|
|
|
|
wappalyzer.prefs.setBoolPref('newInstall', false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gBrowser.addEventListener('load', wappalyzer.installSuccess, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Listen for URL changes
|
|
|
|
// Listen for URL changes
|
|
|
@ -265,7 +265,7 @@ wappalyzer =
|
|
|
|
switch(data)
|
|
|
|
switch(data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 'autoDetect':
|
|
|
|
case 'autoDetect':
|
|
|
|
wappalyzer.autoDetect = wappalyzer.prefs.getIntPref('autoDetect');
|
|
|
|
wappalyzer.autoDetect = wappalyzer.prefs.getBoolPref('autoDetect');
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'enableTracking':
|
|
|
|
case 'enableTracking':
|
|
|
@ -478,7 +478,7 @@ wappalyzer =
|
|
|
|
child.setAttribute('label', detectedApp);
|
|
|
|
child.setAttribute('label', detectedApp);
|
|
|
|
child.setAttribute('class', 'menuitem-iconic');
|
|
|
|
child.setAttribute('class', 'menuitem-iconic');
|
|
|
|
child.setAttribute('image', 'chrome://wappalyzer/skin/app_icons/' + detectedApp + '.ico');
|
|
|
|
child.setAttribute('image', 'chrome://wappalyzer/skin/app_icons/' + detectedApp + '.ico');
|
|
|
|
child.setAttribute('oncommand', 'gBrowser.selectedTab = gBrowser.addTab(\'' + wappalyzer.homeUrl + 'detail/?app=' + escape(detectedApp) + '\');');
|
|
|
|
child.setAttribute('oncommand', 'gBrowser.selectedTab = gBrowser.openTab(\'' + wappalyzer.homeUrl + 'detail/?app=' + escape(detectedApp) + '\');');
|
|
|
|
|
|
|
|
|
|
|
|
e.appendChild(child);
|
|
|
|
e.appendChild(child);
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -564,7 +564,7 @@ wappalyzer =
|
|
|
|
|
|
|
|
|
|
|
|
req.close();
|
|
|
|
req.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
req.send('d=' + encodeURIComponent(report));
|
|
|
|
req.send('d=' + encodeURIComponent(report));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -618,6 +618,13 @@ wappalyzer =
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
installSuccess: function()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
gBrowser.removeEventListener('load', wappalyzer.installSuccess, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wappalyzer.openTab(wappalyzer.homeUrl + 'install/success/');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
openTab: function(url)
|
|
|
|
openTab: function(url)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
gBrowser.selectedTab = gBrowser.addTab(url);
|
|
|
|
gBrowser.selectedTab = gBrowser.addTab(url);
|
|
|
@ -670,7 +677,7 @@ wappalyzer =
|
|
|
|
'</div>'
|
|
|
|
'</div>'
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
container.onclick = function() { body.removeChild(container) };
|
|
|
|
container.onclick = function() { body.removeChild(container); };
|
|
|
|
|
|
|
|
|
|
|
|
body.appendChild(container);
|
|
|
|
body.appendChild(container);
|
|
|
|
|
|
|
|
|
|
|
|