3 Cool Javascript Hacks

Are you ready to learn some hacking? If yes, here are the 3 cool javascript tricks that you can try out now. To perform the hack, you need to copy and paste the javascript code on the address bar of your web browser. Make sure you clear the address bar first before pasting. Once paste, hit Enter.

Javascript Hack 1 : Edit Any Webpage

The code :

Now, you can edit any webpage that you like. See how my blog became the best tech blog on the net.

My Tech Quest The Best Tech Blog

Javascript Hack 2 : Make Image Dance

The code :

Look at the screenshot, see the Firefox wallpapers dancing on Google Image’s search page.

Javascript Hack Image Dancing

Javascript Hack 3 : Reveal Passwords Under Asterisks

The code :

Without using any software, you can reveal your password hidden under the asterisks on your browser with this javascript hack. After pasting the code, a dialog box will prompt and reveal your password. Example as shown in the screenshot below.

Javascript Hack Recover Lost Password

Steve Yu is a technology blogger with five years blogging experience (since 2007). He is the founder of MyTechQuest.com.

34 Comments

  1. Nihar

    July 10, 2008 at 10:57 am

  2. ameo

    July 13, 2008 at 12:51 am

    cool tips ,
    would try that for sure

    ameos last blog post..Social Networks Stress

  3. htRULZ

    August 4, 2008 at 2:33 am

  4. shaneiadt

    March 11, 2009 at 1:12 am

    I’m looking for some new JavaScript to play with, seen and played with these before…but nonetheless i still love them :)

    JS is a great language to know, but it’s a tough one to get to grips with at the beginning.

    Thanks,

    Shane

  5. Montana

    June 18, 2009 at 1:36 am

    The second hack is not working in my Internet Explorer browser.

  6. Hackman

    August 20, 2009 at 10:20 pm

    Here is the right code for the second point:

    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(‘img’); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+’px’; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+’px’}R++}setInterval(‘A()’,5); void(0);

    much fun!

    Greez
    Hackman

  7. PayneofDeath

    October 9, 2009 at 8:08 pm

    Dude why cant I do it? is it my java or what? I cant change anything!!!! i used the java script stuff! and Last time it works! maybe thats becauze of updating it?

  8. DD

    October 21, 2009 at 7:19 am

    that is not the right code this is:

    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+”px”; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++}setInterval(‘A()’,5); void(0);

  9. hi

    October 29, 2009 at 12:58 am

    cn u tell me wer to paste it?

  10. hi

    October 29, 2009 at 1:05 am

    the third code wen i entered it it said check the spelling and try again .plz help me

  11. me2

    November 14, 2009 at 8:42 am

    # 3 didnt work at all watsoever it didnt do anything

  12. trell

    November 16, 2009 at 12:01 am

    i really like hack one!!! i tricked my mother thinking people changed Youtube!

  13. dreambox

    November 24, 2009 at 10:02 pm

    I like first. he he he
    .-= Check out dreambox´s latest blog post ..Speed Test ????????????? adsl =-.

  14. Nony-kun

    February 25, 2010 at 3:01 am

    Whats the code to move text around?

  15. helppp

    April 19, 2010 at 1:00 am

    The second and third hacks don’t work. can you help me?

  16. Harry

    May 11, 2010 at 9:26 pm

    Hey Where To Write These Scripts!

  17. kiran

    May 23, 2010 at 7:42 pm

    Dude I was not able to use 3rd tip, please explain wit example to use the 3rd script

  18. lewy

    May 30, 2010 at 2:23 pm

    none of them are right…

  19. shiva

    July 7, 2010 at 1:30 pm

    i m not getting java hacking code to copy images from any locked album in orkut profile…
    plz help me……

  20. Jayant

    July 15, 2010 at 9:46 pm

    how to do these??I can’t make them work……nothing showing at all

  21. allspark

    July 30, 2010 at 8:12 pm

    Hey Where To Write These Scripts!

  22. rao saqib

    August 3, 2010 at 10:08 pm

    that is not the right code this is:

    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+”px”; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++}setInterval(‘A()’,5); void(0);

  23. Francis the hacker

    October 25, 2010 at 8:29 am

    @allspark @jayant put the codes to your address bar and hit enter thats it! =)

  24. anonymous

    February 7, 2011 at 5:18 am

    change the ‘img to ‘a’ or ‘p’ and see what happens :-)

  25. Roert

    February 8, 2011 at 4:58 am

    None of these work on Firefox, i used them before and they work on Google chrome

  26. tom

    March 8, 2011 at 10:01 pm

    these tricks are not working in firefox

  27. Pingback: Katamari Javascript Hack for Google Chrome | My Tech Quest

  28. mnbvcxzl90

    June 30, 2011 at 3:24 am

    This is not hacking, this is simply messing with javacode, it only changes what you see for your browser. :l

  29. arun

    September 1, 2011 at 9:50 am

    not working anymore

  30. Fox

    September 24, 2011 at 11:34 am

    yes these are cool js codes, but i hape you all understand these arent hacks. scripts arent hacks. btw heres the script that makes your screen shake like an earth quake (i think you can only have one tab up or something its kind of moody)
    javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i–) {for (j = n; j > 0; j–) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)

  31. JamesBond

    November 7, 2011 at 10:28 pm

    There is a much easier way to perform the password trick (not hack!!!)
    click on the password box you want to see the go to address bar and type/paste:

    javascript:alert(document.activeElement.value);

    Remember: it is important that you click on the password box before you type it in because the code is not getting the value of the box
    it is getting the value of the last-clicked-on element so you must make the password box the last-clicked-on element

  32. Brennon

    March 11, 2012 at 12:03 pm

    how do you make hack 1

  33. s0nam

    June 2, 2012 at 12:45 am

    hy pls help me guys can anyone give me script of hacking passwrd  of http://www.mig33.com if any one then pls email me at sonam.shrestha81@yahoo.com << pls i will bee thank fulll i trying more and more to hack mig33 ids but i cant so pls help meh guys

  34. Guest

    June 2, 2012 at 2:54 pm

    javascript: document.body.contentEditable =’true’; document.designMode=’on’; void 0

    Is the best one ever!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>