compress a javascript [duplicate] - javascript

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I want my js not to be understood by anyone. I have read some similar posts on this site but can get an exe or a full desktop application for it. Whatever I get are online tools.
OR how to sense '\n' character in js?

UglifyJS / UglifyJS2:
JavaScript parser / mangler / compressor / beautifier toolkit

You can download "yui compressor" to compress the javascript. But I does not means that no-one can read you scripts.
Their are again tool which make your compressed javascript files again readable :(

Related

De"compressing" Javascript [duplicate]

This question already has answers here:
Is there such a thing as a javascript deminifier (deobfuscator)? [closed]
(10 answers)
Closed 8 years ago.
This will without a doubt be a duplicate, but I have no idea what else to call it.
A friend of mine is trying to learn Javascript. He accidentally saved the "compressed" (all whitespace removed) version as the version he has, and wants me to help format it again. He's emailed me a massive .js file and... I'm not sure what to do.
I don't want to install (no doubt Eclipse has one) a Javascript plugin for Eclipse just to right click and format once. Is there a tool for this? A parser that'll build an AST then format that AST?
Tool to Unminify / Decompress JavaScript
Apparently JS beautifier will do the trick sometimes.
There's a plethora of others on there.

Plugin to obfuscate JS / jQuery code [duplicate]

This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
Closed 9 years ago.
I've finished developing in terms of js / jQuery and I was wondering if there was a plugin that can obfuscate my javascript and jQuery code while still allowing it to work.
And if possible, not slow down load times that much.
Is there such a plugin?
This looks like a duplicate of How can I obfuscate (protect) JavaScript?
In short, the popular options are YUI Compressor, Google Closure Compiler, and UglifyJS. They all do minification, so you might want to not use the minified version of your project that you mention in a comment.
I personally think that Google Closure Compiler is the most thorough, but hardest to use.
First choice is YUI compressor, second is uglifyjs.
The fist one is really good and popoular for minification (with makes obfuscuation also).
You can use one of following tools:
YUI Compressor
ShrinkSafe
Packer

can we rename/write to local files in HTML5 [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Modifying Local Files Using HTML5 and JavaScript
I know we can read a local file that has been selected by the user, but is there the ability to rename or write to local files in javascript?
There is no way to natively write the filesystem in Javascript, for obvious security reasons.
However, if you must, there is an ActiveX object (Only in IE). It's Scripting.FileSystemObject.
You will find the documentation about that beast on the msdn site.

How to read and debug the compressed javascript file? [duplicate]

This question already has answers here:
How do you debug through a compressed JavaScript file? [duplicate]
(4 answers)
Closed 7 years ago.
I saw an interesting js file in a website, but i cannot read it because it is minimized.
Is there any service or method to convert it to a readable file?
The minimized js file is similar to the compiled output from Google Closure Compiler.
You can use http://jsbeautifier.org
There is also a similar feature provided by UglifyJs which has an option for beautifying the code:

Protecting JavaScript? Or use Something else? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I have been working on a web app in JavaScript. Nearing complete.
How do I protect me JavaScript code from someone copying it? I mean if you view my page source, it references the .js files and one could really steal these.
Should I be using something else? RoR?
Does Google Maps have a RoR API?
Your closest bet would be to use something like
A Javascript Obfucator
A Javascript Minifier
A Javascript Packer
People will still be able to steal and use your code though, it will just be harder to modify.

Categories