title: firefox addons, save data in simple-storage
body: <p>I am trying to create a Firefox addon, using Firefox Addon Builder.</p>
  
  <p>I can't figure our how exactly I can save data in "simple-storage".</p>
  
  <p><code>main.js</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>var data = require("self").data;
  
  var ss = require("simple-storage");
  if(typeof(ss.storage.bl) === 'undefined') {
    ss.storage.bl = [];
  }
  blacklist = ss.storage.bl;
  
  exports.main = function(){
      var pageMod = require("page-mod");
      pageMod.PageMod({
          include: "*",
          contentScriptWhen: 'end',
          contentScriptFile: [data.url("jquery.min.js")] 
      });
  
      var contextmenu = require("context-menu");
      contextmenu.Item({
          label: "block",
          context: contextmenu.SelectorContext("a[href]"),
          contentScriptFile: [data.url("jquery.min.js"),data.url("onclick.js"),data.url("core.js")]     
      }); 
  };
  </code></pre>
  
  <p><code>onclick.js</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>self.on("click", function (node) {
      user = node.href.substring(node.href.lastIndexOf('/') + 1);
  
      blacklist.push(user);
  
      blockthis();
  });
  </code></pre>
  
  <p>Getting this error all the time:</p>
  
  <blockquote>
    <p>onclick.js, line 4 <br>
    in blacklist.push(user) <br>
    ReferenceError: blacklist is not defined</p>
  </blockquote>
  
  <p>link : <a href="https://builder.addons.mozilla.org/addon/1054941/latest/" rel="nofollow">https://builder.addons.mozilla.org/addon/1054941/latest/</a></p>