Writing an add-on for facebook

I’ve written an addon to tweak some things about facebook for a presentation at Firefox Developer’s conference this weekend, however it never seems to apply when I load the facebook app. Am I doing something wrong?

Source here: https://github.com/birtles/facetweak/

I’ve leaned very heavily on Eitan’s responsive IRCCloud add-on (which works), but it doesn’t seem to have any effect. If I reduce the JS to a single console.log call, even that doesn’t run.

Any ideas?

@jorgev Is this something you also cover on the Addons category? Maybe we should move it there to get help from others?

I’ve also tried to inject some code into Facebook app and I had the same problem. Nothing is working.

Does it work when facebook is loaded in the browser app? Does https:// instead of * help?

The Add-ons category would probably be the most appropriate, but I think at this point @eviljeff is the best person to answer these questions.

Unfortunately it doesn’t work when loaded in the browser app either. I tried using https:// instead of * but that didn’t work either.

Thanks for all the help! With much help from Eitan I think I’ve worked out what is happening. When you install a packaged app from WebIDE, it appears to just copy over the contents of the folder you point it at (after zipping it up).

That appears to mean that:

  1. You don’t actually need to make up a package.zip – WebIDE does it for you.
  2. If you have a ‘dist’ folder with your package.zip, you also need to copy the unzipped source files.
  3. If you point WebIDE at a folder with a node_modules subfolder you might have trouble since WebIDE will copy the whole thing over (and on Windows you can hit errors because of exceeding the maximum path length).

Filed a bug to cover all of this: https://bugzilla.mozilla.org/show_bug.cgi?id=1225002