Need to decode a javascript encoded web page?

Follow these instructions to add a bookmark to either Mozilla or IE which will decode a javascript encoded page to show you what the browser is actually rendering. I prefer Mozilla for this as it has features such as being able to show frame contents in a window and can turn javascript off without having to reload the page.

For Mozilla 1.2.1:

For IE 6: To activate it just select the bookmark while looking at an encoded page.


Note: This code replaces the text in the window with the source but the original javascript will stay active. That means that if the page prevents you from doing things like highlighting text then you may have to disable javascript. In Mozilla you do that with Edit -> Preferences... -> Advanced -> Scripts & Plugins -> Navigator (tickbox).

Another useful tip is that in Mozilla if you save the page to disk using File -> Save Page As... then it will save the decoded javascript in the file. You don't need the above bookmark trick for that.

Code by Kicken ( slick @ aoeex.com )
Mail corrections or comments to
Sapient.Fridge@spamsites.org