Author Topic: COOL "JAVASCRIPTS"  (Read 6606 times)

0 Members and 1 Guest are viewing this topic.

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« on: February 05, 2012, 07:37:11 pm »
-------------- COOL JAVASCRIPTS ---------------



Cool Javascript Tricks: Edit Websites in Browser (Live)

Imagine a world where you are a God and have ultimate control on what happens and more importantly, how it happens. Seems too good a dream. Now it has come true, at least for the online world.

Using this trick, you will be able to edit any webpage live in your browser as if it was a Wiki and change the details according to your wish. Yes, you read that right. You can edit Google or even Facebook for that matter right in your browser and that too without requiring any technical know-how or getting deep into hacking and cracking.

Here is an example picture demonstrating the Google Homepage edited by me to say that I own Google.


This is just an example. You can use it for anything like showing wrong traffic stats or for fooling people by showing that someone said something about them on Facebook or Twitter. It depends only on your creativity. But I would advise you to stay ethical and use it for entertainment purposes only.

(Mozilla Firefox does not support this. If you use Firefox, you can use the bookmarklets given at the end of this post. If you use Google Chrome and the code does not seem to work, precede it with "javascript:" without quotes.)

To use this trick, all you need to do is just copy the code given below and paste it in your address bar after you have opened the website you wish to edit. And start editing.

Quote/Ask Question

javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200


You can capture a screenshot by pressing the Print Screen key or by using the Snipping Tool if you use Windows 7 or Windows Vista. If you wish to again make the website non-editable to give a more authentic look, copy and paste the code given below in the address bar after you are done editing (does not work in Firefox).

Quote/Ask Question

javascript:document.body.contentEditable%20=%20'false';%20document.designMode='off';%20void%200
« Last Edit: February 05, 2012, 07:55:44 pm by DPSC »
You do not have permission to give points
point 0 Points

This topic did not receive points.

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #1 on: February 05, 2012, 08:02:11 pm »
THE BIG WHEEL

This piece of code pulls off all the images from your web page and rotates them in a circle. Really makes any page go naked (without its images). The best place to test is a website with many images. (Google Images for an example)

Quote/Ask Question

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);


If you look carefully in the above code, its rotating the HTML “img” tag. Just replace it with “a” or “p” and watch some links or text rotate instead of images.

SOURCE
« Last Edit: February 05, 2012, 08:02:51 pm by DPSC »

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #2 on: February 05, 2012, 08:06:11 pm »
THE CALCULATOR

In case you are not in a mood to use the standard windows calculator and want your browser to do the dirty job for you, use this code.

Quote/Ask Question

javascript: alert(34343+3434-222);


You can change the numbers according to your choice and also try creative complex equations. Just put your arithmetic into javascript: alert( );

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #3 on: February 05, 2012, 08:09:02 pm »
FINDING SPOOF WEBSITES

There are times when you are not sure that the website that you are visiting is authentic. Use this code whenever in doubt :-


Quote/Ask Question

javascript:alert("The actual URL is:\\t\\t" + location.protocol + "//" + location.hostname + "/" + "\\nThe address URL is:\\t\\t" + location.href + "\\n" + "\\nIf the server names do not match, this may be a spoof.");


Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2625
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
      CSE
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
COOL "JAVASCRIPTS"
« Reply #4 on: August 18, 2012, 05:40:47 pm »
Mere browser mein java script copy kiya to it opened google...and displayed results..
What to do..?

Can you rectify this prob and tell me exactly where I am lacking..? :at wits end  :at wits end  :at wits end

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #5 on: August 18, 2012, 05:45:42 pm »
Quote from: sammy on August 18, 2012, 05:40:47 pm
Mere browser mein java script copy kiya to it opened google...and displayed results..
What to do..?

Can you rectify this prob and tell me exactly where I am lacking..? :at wits end  :at wits end  :at wits end


yups bro in some browsers only the line is copying
for eg if you copy 1st one
Code:
Only registered users can see contents. Please click here to Register or Login.
you will get  
Code:
Only registered users can see contents. Please click here to Register or Login.
so copy the line and write "javascript:" in front of line

Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2625
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
      CSE
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
COOL "JAVASCRIPTS"
« Reply #6 on: August 18, 2012, 05:55:22 pm »
Quote from: DPSC on August 18, 2012, 05:45:42 pm
Quote from: sammy on August 18, 2012, 05:40:47 pm
Mere browser mein java script copy kiya to it opened google...and displayed results..
What to do..?

Can you rectify this prob and tell me exactly where I am lacking..? :at wits end  :at wits end  :at wits end


yups bro in some browsers only the line is copying
for eg if you copy 1st one
Code:
Only registered users can see contents. Please click here to Register or Login.
you will get  
Code:
Only registered users can see contents. Please click here to Register or Login.
so copy the line and write "javascript:" in front of line


Uske baad kaise karna h..I can't get you..

Pehle koi site chalani h..fir ye java script wala copy karna h.?

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #7 on: August 18, 2012, 06:07:41 pm »
Quote from: sammy on August 18, 2012, 05:55:22 pm
Quote from: DPSC on August 18, 2012, 05:45:42 pm
Quote from: sammy on August 18, 2012, 05:40:47 pm
Mere browser mein java script copy kiya to it opened google...and displayed results..
What to do..?

Can you rectify this prob and tell me exactly where I am lacking..? :at wits end  :at wits end  :at wits end


yups bro in some browsers only the line is copying
for eg if you copy 1st one
Code:
Only registered users can see contents. Please click here to Register or Login.
you will get  
Code:
Only registered users can see contents. Please click here to Register or Login.
so copy the line and write "javascript:" in front of line


Uske baad kaise karna h..I can't get you..

Pehle koi site chalani h..fir ye java script wala copy karna h.?


step by step explained...
LOGIN TO VIEW

Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2625
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
      CSE
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
COOL "JAVASCRIPTS"
« Reply #8 on: August 18, 2012, 06:09:04 pm »
Yup I have done that par kuch hua hi nahi na...!!!

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #9 on: August 18, 2012, 06:11:16 pm »
Quote from: sammy on August 18, 2012, 06:09:04 pm
Yup I have done that par kuch hua hi nahi na...!!!


kaunsa post try kar rha hai ????

Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2625
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
      CSE
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
COOL "JAVASCRIPTS"
« Reply #10 on: August 18, 2012, 06:15:38 pm »
Quote from: DPSC on August 18, 2012, 06:11:16 pm
Quote from: sammy on August 18, 2012, 06:09:04 pm
Yup I have done that par kuch hua hi nahi na...!!!


kaunsa post try kar rha hai ????


javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200"

ye daal diya browser mein..!!!

enter kiya par kuch nahi hua.?

Offline DPSC

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 17061
  • Posts: 5830

    • GTBIT
    • _
      CSE
    • View Profile
    • http://mycampusnotes.com
COOL "JAVASCRIPTS"
« Reply #11 on: August 18, 2012, 06:27:13 pm »
Quote from: sammy on August 18, 2012, 06:15:38 pm
Quote from: DPSC on August 18, 2012, 06:11:16 pm
Quote from: sammy on August 18, 2012, 06:09:04 pm
Yup I have done that par kuch hua hi nahi na...!!!


kaunsa post try kar rha hai ????


javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200"

ye daal diya browser mein..!!!

enter kiya par kuch nahi hua.?


another explanation this might help
agar nhi hua then PM me

Offline dext3r

  • Alumni
  • Techbits Elite Member
  • *
  • Points: 3820
  • Posts: 2634

    • USIT
    • _
      ECE
    • View Profile
COOL "JAVASCRIPTS"
« Reply #12 on: August 18, 2012, 06:33:17 pm »
Quote from: DPSC on August 18, 2012, 06:27:13 pm
Quote from: sammy on August 18, 2012, 06:15:38 pm
Quote from: DPSC on August 18, 2012, 06:11:16 pm
Quote from: sammy on August 18, 2012, 06:09:04 pm
Yup I have done that par kuch hua hi nahi na...!!!


kaunsa post try kar rha hai ????


javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200"

ye daal diya browser mein..!!!

enter kiya par kuch nahi hua.?


another explanation this might help
agar nhi hua then PM me


Replace the '%20' in the script with a single space and it will work fine.
It wont redirect to google.


READ THE FORUM RULES BEFORE POSTING


Wait For Replies | Post Only Once | Ask in Relevant Threads | Avoid Creating New Topics

Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2625
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
      CSE
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
COOL "JAVASCRIPTS"
« Reply #13 on: August 18, 2012, 06:38:38 pm »
Not working @himnshu

@DPSC...all tricks are working fine. except the one I told you...!!!  :clap1  :clap1

Offline Gaurav_Rawat

  • Newbie
  • *
  • Points: 32
  • Posts: 17
    • _
      Not Specified
    • View Profile
Re: COOL "JAVASCRIPTS"
« Reply #14 on: May 20, 2015, 06:34:12 pm »
To use these tricks simply click on the right menu go to more tools then Javascript Console type that code and hit enter(for chrome)

 

How to check whether username already exist in asp.net without any javascripts

Started by DPSC

Replies: 0
Views: 1057
Last post July 28, 2013, 01:34:35 am
by DPSC
AEF ADVANCED ELECTRON FORUM MODS " showing user viewing the forum on main index page "

Started by sagrma

Replies: 1
Views: 3720
Last post February 04, 2011, 02:35:35 pm
by sagrma
Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49