Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTML,CSS, & JavaScript Source Code Minifiers & Compressors

14 views
Skip to first unread message

MASTER TROLL BAIT

unread,
Jun 26, 2015, 1:46:57 PM6/26/15
to
www.whak.ca/minify/HTML.htm
www.whak.ca/minify/CSS.htm
www.whak.ca/minify/JavaScript.htm

This script can take your entire web page or just a tiny piece of code and minify it or compress (Bzip, LZMA, etc) and pack it to a JavaScript so it is client side decompressable through any web browser. The WHAK JavaScript packer targets repeated words and replaces them with a single character (when the created JavaScript runs, it reassembles everything), so it may make your page half the size if many words are repeated. It will hide much of your data from spam bots. Sometimes you don't want everything crawled! Key words will still be viewable in the script generated, but no words will make any sense as they are in random order that do not make sentences.

You can just do snippets of code or complete web page (drag and drop),

EXAMPLE OF OBFUSCATION:

My email address is <a href="mailto:ner...@gmail.com">ner...@gmail.com</a>

CONVERTS TO:

<script>
var W,H,A,K='My email address is <a href="mailto:#@$.%">#@$.%</a>',W='#$%'.split(''),H='nerdful gmail com'.split(' ');for(A in H)K=K.split(W[A]).join(H[A]);document.write(X);
</script>

Email harvesters are constantly crawling the web looking for addresses to spam. To prevent these harvesters from finding their addresses, many people have attempted to obfuscate them before posting in a public place (if you aren't already, I highly recommend it). I've done this for years, and while there are many sites that will obfuscate them for you, I've never really been able to find any that handled the exact options that I wanted.

This HTML to JavaScript converter is kind of a text encoding system, but unlike Base64 and URLencode decoding/encoding, this tool makes the JavaScript smaller than the original HTML code given (Base64 will inflate by 30%, URIencode will increase the size by over 40%).

DemoScene byte hackers will find this web based tool (runs VIA web browser on operating systems such as Linux, Mac, Windows, Android, etc) handy for making 2KB to 64KB 3D demo canvas code packed up (semi compressed, we have other tools for extreme packing), when some contest you entered has strict file size limits, every byte matters!

This tool makes for handy injecting a data clump to an iframe (use foreignObject for Iframing, change document.write(K) to iframeID.src=K) inside a SVG image (now Gzip it and rename *.SVG to *.SVGZ, was able to make a 8MB Holy Bible app 1MB, fits on floppy now), here is a sample (hosted on free image hosting site).

Sometimes chunks of code you want obfuscated so spam bots do not get links or email. On free hosting sites you can compress a file (embed JavaScript, Flash, sounds, videos, 3D WebGL, images, etc VIA Base64 and dataURI tricks so you have one complete file with no external files), even though the server has no compression.

One main disadvantage to this tool is the obfuscation, most search engines cannot decode the script created here, so SEO masters will notice less keywords used from a page.

This unique web based software acts similar to WinZip/WinRar/7zip enabling you to compress your HTMLs into much smaller HTM (embedded JavaScript that self extracts and is self executing) archives with compression ratio of 60% and more! Your web pages will load quicker and you'll save both your web traffic and disk space.

Unzipping/Unbzip/UnLZMA compressed data with created documents in browser is completely transparent for CSS, Java and other scripts, working on the client side, including the scripts contained are between the head and /head tags.
When using this tool, it will convert and escape all those troublesome single quote, double quote issues that always throw you curve balls when creating strings in JavaScript.

HTML to JavaScript Convertor - takes your markup and converts it to a series of document.write() statements that you can use in a block of JavaScript. This clever utility converts normal HTML code to dynamically generated JavaScript instead. Very useful in applications where the code must be dynamically generated, such as contents inside a JavaScript scroller, text of a random quote script etc.

If you've ever tried to make some normal text containing characters like ' into a JavaScript variable, you will know how frustrating it can be when you miss one, or you miss a \ or a line break or a script tag. Well, let this script do it for you. This online tool formats a HTML code for the output through JavaScript. To convert a HTML code correctly, you can use single AND/or double quotes in HTML code.

To ensure that any HTML that you want generated from Javascript document.write statements does not get misinterpreted as Javascript this application will place a slash (\) in front of certain characters in the text. Each line of HTML source also needs to be separated by \n so that the linefeeds will be correctly inserted into the generated HTML.

Escapes or unescapes a JavaScript string removing traces of offending characters that could prevent interpretation. The following characters are reserved in JavaScript and must be properly escaped to be used in strings: Horizontal Tab is replaced with \t Vertical Tab is replaced with \v Nul char is replaced with \0 Backspace is replaced with \b Form feed is replaced with \f Newline is replaced with \n Carriage return is replaced with \r Single quote is replaced with \' Double quote is replaced with \" Backslash is replaced with \\

ner...@gmail.com

unread,
Jul 18, 2015, 1:26:23 PM7/18/15
to
http://jsfiddle.net/mqezaknv/show/ is a demo of a 2.1 MB web application minified and compressed with client side self extracting & executing JavaScript to 250 KB.

More downloadable tests/demos on https://github.com/JavaScript-Packer/pngcrush-crushed of compression on huge bytecode web applications made with Emscripten.
0 new messages