Skip to content

Commit

Permalink
Show stuff on first run.
Browse files Browse the repository at this point in the history
  • Loading branch information
codebutler committed Oct 22, 2010
1 parent eea723c commit 1cc4033
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion xpi/chrome/content/ff-overlay.js
Expand Up @@ -22,9 +22,19 @@

var FiresheepUI = {
onLoad: function() {
// initialization code
if (this.initialized)
return;

this.initialized = true;
this.strings = document.getElementById("firesheep-strings");

var prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
if (prefs.getBoolPref('firesheep.first_run')) {
toggleSidebar('viewSidebar_firesheep', true);
var welcomeUrl = "http://codebutler.github.com/firesheep/welcome.html";
window.gBrowser.selectedTab = window.gBrowser.addTab(welcomeUrl);
prefs.setBoolPref('firesheep.first_run', false);
}
},

toggleSidebar: function (e) {
Expand Down
1 change: 1 addition & 0 deletions xpi/defaults/preferences/prefs.js
Expand Up @@ -22,6 +22,7 @@

pref("firesheep.capture_interface", "");
pref("firesheep.capture_filter", "tcp port 80");
pref("firesheep.first_run", true);

// https://developer.mozilla.org/en/Localizing_extension_descriptions
pref("extensions.firesheep@codebutler.com.description", "chrome://firesheep/locale/overlay.properties");

0 comments on commit 1cc4033

Please sign in to comment.