Ads by Google

Donate

If you like articles and you want an increase of them, please make a little donation. If you make a donation you can submit us by mail an argument for next articles!

Importo: 

add RSS

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati

Subscribe to Blog

Follow us on Twitter

follow us

Manfriday blog gadget

Javascript


Decode obfuscated javascript with IE8
Martedì 31 Marzo 2009 23:26

I was making experiments with IE8 developer tools, when I see that it's possible to change everything in a html page. So I got an idea...:-)
 
Have you ever tried to give a look to the code behind an html page ? yes sure... but often the javascript code is obfuscated and you know that the interesting part is there...
 
Ok, that effect is often reached using the packer coder , but as you can see, the decoder button is disabled. The trick is the following : open developer tools with F12 on that page, then look for the textarea with name=output and delete the property readonly. Then go to the button with id="decoder-script" and delete the property disable. To delete a property you can simply change it with the background property.
 
Ok now you can copy the obfuscated javascript code in the textarea with label "Copy:" and click on the "decoder button" and probably you will got the real javascript code!!
 
I'm afraid that javascript will be very un-safety with the development of this functionalities on browsers...guys pay attention!!!
 
Build a google gadget
Sabato 28 Febbraio 2009 20:55

During past days I tried to build a google gadget to enhance manfriday site visibility. I didn't know nothing about that, then I start googling and I found a lot of documentation on google code. Maybe there is too much documentation, it's very difficult to find what are you looking for and to get a good start point. The first bad point : the google gadget editor doesn't work with google chrome!!!! unbelievable...
 
When you want make a gadget, you have to store it on a google page, so it will be available on igoogle for everyone, then you can also get html-javascript generated code to embed the google gadget on your page like in this page on the left column. Nice.
 
 
Javascript Redirect
Lunedì 15 Dicembre 2008 00:22
 
This is a useful utility in javascript to redirect user with a count down warning.
It' very simple and it doesn't need explanation. 
 
<html>
<head>
<script language="JavaScript">

var start=new Date();
start=Date.parse(start)/1000;
var counts=5;
function CountDown(){
 
Javascript IN operator
Domenica 07 Dicembre 2008 19:12

Un piccolo esempio di come questo operatore può facilitare la lettura del codice, togliendo la ridondanza dai costrutti con molti "OR"

Invece di usare una sintassi come la seguente: 

if( foo=="bar" || foo == "toolbar" || foo == "sidebar")

{

//... 

 

 


Ricerca personalizzata