Protect Greasemonkey Scripts?

I know that everything that is downloaded and at the user's disposal will be quite difficult to protect, but I just want to hear opinions. I am thinking of selling a script (made using Greasemonkey ...), and I want the user to not be able to easily view the source code or send it to other users. Thanks in advance.

+1
source share
3 answers

As with any javascript, full protection is not possible due to the nature of the language, see:

Javascript library: obfuscate or not obfuscate - that is the question and also How can I confuse (protect) JavaScript?

However, you can confuse or minimize your javascript code, none of which will fully protect it, but they will make it less clear to humans.

+2
source

In fact, the only thing you could try is obfuscation, but this does not guarantee that no one can read your code.

Try it - http://www.javascriptobfuscator.com/

+2
source

With Greasemonkey, there is another option for JavaScript fading.

You can compile the GM script into a Firefox extension.

Installing Greasemonkey makes it easy to view / get GM script code. But almost no civilian population even knows where to look for files with the extension. (Of course, nothing will stop a particular programmer from getting and analyzing your code.)

One such compiler: http://arantius.com/misc/greasemonkey/script-compiler .

+1
source

All Articles