1

Can someone tell me which tools/methods you use to obfuscate the javascript code when you create your addon/s?

We have a problem of another DEV messing with our code, creating some other crap with it and then bad mouthing us :(
(seriously, how low can some people stoop?)

I understand it wont keep truly determined souls at bay, but we want to atleast make him work for it before he gets the source. Frustrate the bugger for a while at least ;)

Thanks!

Ryan
  • 9,821
  • 22
  • 66
  • 101
  • Possible duplicate of http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript – trutheality May 29 '11 at 17:47
  • @trutheality, I did google and find that, and tried some of those out but they seem to throw some errors when I try to use FF addon code there... – Ryan May 29 '11 at 18:21

3 Answers3

1

If you want to publish your addon in addons.mozilla.org I think that you must not use obfuscated javascript.

You can try to contact someone from Mozilla about your problem and if the problem is really serious they can blacklist the other add-on.

AlfonsoML
  • 12,634
  • 2
  • 46
  • 53
1

Here are some links you may find useful:

  1. http://www.javascriptobfuscator.com
  2. http://javascriptcompressor.com/
  3. http://www.java2s.com/Code/JavaScriptDemo/UnescapeEncoderDecode.htm
  4. http://jscompress.com/
  5. http://scriptasylum.com/tutorials/encode-decode.html

But you know, one click encrypt = one click decrypt :(

Afshin Moazami
  • 2,092
  • 5
  • 33
  • 55
Darxis
  • 1,482
  • 1
  • 17
  • 37
  • Thats ok, as long as it makes it harder for him to get everything he is looking for. Will check it out, thanks! – Ryan May 30 '11 at 19:03
0

I'm not well versed in Firefox-specific JavaScript, but it should be possible to run it through a JavaScript minifier like http://jscompress.com/ to obfuscate your code.

Karl Nicoll
  • 16,090
  • 3
  • 51
  • 65