Minimize your code first, then obfuscate it so that everything you can really do.
Someone can take and run your code, but they will not be able to understand it enough to configure it, because variables and functions will be called as a, b, cif you reduce it.
, , document.href === 'mysite', , ,
Ajax, eval it, , script , , .
, , .