This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16654|Reply: 2

[JavaScript] With javascript you can "hack" a website (entertainment) like this

[Copy link]
Posted on 11/27/2014 11:45:41 PM | | | |
You can "hack" a website like this (entertainment)

Paste the following code in the address bar





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


↑Copy and paste it into the address bar and press enter, you can typeset the website content by yourself







Also, the code that causes all the images on the web page to fly around!!

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

Enter the code below to exit editing
javascript:document.body.contentEditable='false'; void 0




Although these codes are old, it's still good to take them out for entertainment once in a while!




Previous:WP user to Microsoft: Strongly demand fair treatment and don't want to be marginalized
Next:If you want to understand Internet thinking, you must read these 10 good books
Posted on 11/28/2014 12:22:08 AM |
Masturbation.........
Posted on 12/25/2014 11:45:14 PM |
Is chrome supported、、、、、
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com