Showing posts with label Tricks. Show all posts
Showing posts with label Tricks. Show all posts

Monday, June 23, 2008

Edit Any Webpage with this JavaScript Trick

I stumbled upon another cool JavaScript. This time this line of code enables the document or the webpage to be editable(well resizable actually)... To try it out, just paste this line of code below onto the address bar of a site, for example www.google.com, thus overwriting the website's url and hit enter. Then click on any content in the webpage to edit(resize) it. hehe...

Here's a sample screenshot:


And here's the piece of code:

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

Cheers!

Monday, June 18, 2007

Download Songs Using Google

You happen to be in a computer with no p2p software, no bittorrent and no administrator privilege to install any music downloading program (iTunes). Well, time and again, google is your friend. This method has been around now for a couple of years. The following search string can also be extended for 'looking up'/downloading other sorts of files using google.com. Now to find a song, just type this string in the google.com search box:

SEARCHTERM intitle:"index.of" mp3 -html -htm -php -mspx -apsx -asp -txt

Now just change the SEARCHTERM into the title or artist of the song or both.

enjoy!

Wednesday, March 7, 2007

Encrypted blog posts. Keep your secrets secret.

"Stop unwanted eyes from reading your private thoughts. Easily encrypt text on your blog/website and be able to decrypt it in the browser right in your blog/website. Everything is done locally on the client using Javscript, so the original text doesn't appear anywhere, not even on a server." - original text from digg.com



read more | digg story

Wednesday, February 21, 2007

Coolest Javascript Trick Ever!

All you have to do is go to a site and enter a piece of java script code. the page reloads and the website’s graphics would go NUTS - all the jpegs fall off their placeholders and fly around in a huge tornado. works on any site with images.

Enjoy!

Instructions:

1) Go to a website (e.g. www.google.com)
2) Paste the ff code :

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; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);