Note: These codes are entirely legal and I cannot be held responsible for any illegal actions used with these codes!
Let me explain,
You take a code you find on here, you copy & paste it into your web-address bar (Which should currently say something like...http://frihost.com/forums/) Press enter, and it "preforms" a trick!
If you like these codes, please post containing some of your javascript codes.
If there is a space between java and script, please remove the space.
What I have so far:
| Code: |
| javascript: contentBodyEditable="true".DesginMode="message" |
Enter this in the web-address bar and press enter, it deletes everything on the page a replaces it with what you entered for "message" (Leave the quotes in)
I actually found that last one on accident...While trying to remember this one:
| Code: |
| javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 |
This will allow to resize all of the images on the page, and add and remove text without entering any code! - All credits of the finding of this code to GreenDiamond Worlds :: Forums.
Next.
| Code: |
| javascript: alert('message here'); |
Replace 'message here' with your message (Example: 'hi') While leaving the 's in. This will make a pop-up message saying your message.
Next.
| Code: |
| javascript: back(); |
OR
| Code: |
| javascript: forward(); |
These take you forward or back one page.
Next.
Ok this is a long one, so just copy & paste, NO EDITING:
| 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.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); |
Use this one to make all the pictures on the page fly around the screen! (Works on any page)
More coming soon!...I think...
Hi
I like the
| Code: |
| javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 |
one
And I can't see why there not legal as it is client side, you can't edit someones site with these sorta things.
Nice, real nice.
Thank you for sharing. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Very good sharing, i already using.
Thanks!
hey thanks for sharing man, your codes are cool. i like the floating images. but can u at least post more complex codes something like accordion thing hehehe. just kidding jsut wanted to increase my points hehe
My friend made this:
javascript: alert('Alert. Your computer is overgoing a dormant state. All the CPU memory above 72 megabytes will be lost. To continue with shutdown, press OK, or press close to cancel and lose your memory.');
you can pretty much execute any code like that.
you can call functions from any page, add code to the page and execute that,
add, modify variables, ect.
bookmarklets work in the same way.
check out this one
http://googlesystem.blogspot.com/2008/04/download-youtube-videos-as-mp4-files.html
somebody even made a bookmarklet maker, you can write code in the textfield and the link gets updated with your code.
add it you your favorites and run it...
link: http://userjs.up.seesaa.net/js/bookmarklet.html
but I didn't know about:
| Code: |
| javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 |
nice one 
those are some really interesting codes... thanks for sharing!!
There is the javascript I use to check when a static page was last modified:
| Code: |
| javascript:document.write(document.lastModified); |
Handy, too 
| rockacola wrote: |
| Code: | | javascript:document.write(document.lastModified); |
|
Just as you said, a handy one. And so simple, but never thought of it. 
Thanks for sharing!!! 
Pretty cool stuff.
I liked the last one the most where all the images fly around the screen. That was pretty cool.
Nice post, I'd like to see some more of these.
oh wow, that flying image one is going to entertain me for hours! lol, thanks for sharing bro.
Heh, these are old, but rather amusing if you're bored 
thanks!
those are some great scripts.
but, is there any way to make the:
| 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.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); |
slow down?
also, i made this:
| Code: |
| javascript: confirm('your computer can been infected by a deadly virus, you need more virtual memory. press yes to continue this procces'); alert('continuing anyway'); |
the image thingy is pretty old. it has a bug too. If you refresh the page, the image fly speed increases each time you refresh. at one point of time, your browser starts crashing. Nice way to test javascript handling capabilities of browsers though..
| morfeusman wrote: |
thanks!
those are some great scripts.
but, is there any way to make the:
| 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.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); |
slow down? |
Near the end, where it says "setInterval('A()',5);", change the 5 to a higher number to slow it down.
They are bookmarklets; however, considering the fact that it's the clients monopoly to use them in that way, it's no great breakthrough for programmers.
What would really be interesting is if a programmer could add a bookmarklet to a web page from another domain. That way the programmer could copy data from the target page to his or her own page, etc. One possible, but unverified way to do so would be to use the window.open method. Consider the following code:
| Code: |
var homepage=window.open("http://www.randomdomainname.com/");
homepage.location.href="javascript:alert('This page was opened by Frihost!');void(0);"; |
I don't really expect this code to work considering the security limitations of javascript, but I haven't tried it out yet. However, if you do find a way to implement the above idea, please contact me.
| Gael_Knightley wrote: |
They are bookmarklets; however, considering the fact that it's the clients monopoly to use them in that way, it's no great breakthrough for programmers.
What would really be interesting is if a programmer could add a bookmarklet to a web page from another domain. That way the programmer could copy data from the target page to his or her own page, etc. One possible, but unverified way to do so would be to use the window.open method. Consider the following code:
| Code: | var homepage=window.open("http://www.randomdomainname.com/");
homepage.location.href="javascript:alert('This page was opened by Frihost!');void(0);"; |
I don't really expect this code to work considering the security limitations of javascript, but I haven't tried it out yet. However, if you do find a way to implement the above idea, please contact me. |
it wont work. cross domain scripting won't work
Thanks for these ideas with javascript
these are great tricks, but i dont know whether these work on IE.
| Quote: |
| javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 |
And that one will be so useful, if you surf to find any design tips. You can rearrange any page while you view it.
And see how it looks
.
Nice tricks. Thanks.
| halilibo wrote: |
these are great tricks, but i dont know whether these work on IE.
| Quote: | | javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 |
And that one will be so useful, if you surf to find any design tips. You can rearrange any page while you view it.
And see how it looks .
Nice tricks. Thanks. |
ofcourse it does
This is very interesting. I can use | Code: |
| javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0 |
all day.
)
pleasse with dis code javascript: document.body.contentEditable ='true'; document.designMode='on'; void
wen i edited a site haw do i save it and make it be on the homepage of the site guys help a broda in here
heres the site i wanna edit
http://mobteam.muf.mobi
reply needed