unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Web / Scripting > Java/Javascript

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2010, 12:25 PM
learn_more learn_more is offline
Member
 
Join Date: Feb 2010
Posts: 59
Default Some fun tricks with JS

original post by disco

so me and hippy were talking and decided to make this thread for random java codes that can be fun to play with. so these are some that i have came across.

-lets say you are on a website and there is a saved password in a login area. put this code in the URL box to magically reveal the password!

Code:
javascript:(function(){var%20s,F,j,f,i;%20s%20=%20"";%20F%20=%20document.f
orms;%20for(j=0;%20j<F.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i<f.length;%20++i)%2
0{%20if%20(f[i].type.toLowerCase()%20==%20"password")%20s%20+=%20f[i].value%20+%20"\n
";%20}%20}%20if%20(s)%20alert("Passwords%20in%20forms%20on%20this%20page:\n\n"%20+%20
s);%20else%20alert("There%20are%20no%20passwords%20in%20forms%20on%20this%20page.");})();
-this one can be fun to mess with people. this code enables you to turn any website into basically a text document and allows you to edit it (no, it will not actually change the actual website). so put this code in the URL box:

Code:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
-this one doesn't really serve a purpose, its just for fun. when you put this code in the URL box, all the images on the current website will begin to swirl around.

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(%22img%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0);
so if anyone else knows some random, pointless codes, post em!
Reply With Quote
  #2  
Old 03-28-2010, 12:25 PM
learn_more learn_more is offline
Member
 
Join Date: Feb 2010
Posts: 59
Default

original post by m0d hipp„

Code:
BBFramework.pages.each(function(page, i)
{
        var inputs = page.getElements('input');
        inputs.each(function(input)
        {
                var score = input.retrieve('score');
                if( score != undefined && score == 'true' )
                {
                        input.setProperty('checked','checked');
                }
        });
});
This was done by learn_more, he helped me out because I had to take these pointless tests @ Best Buy, and we found that the tests were actually stored in a file so with this js code it actually filled in all the correct answers with 1 click. Very helpful with tests 100 questions long :P

I would like to see if something similar could be replicated on the online tests for Intel & AMD, but from looking at it, we couldn't get it. May be worth looking into though as a challenge.

BTW, an AMAZING tool\plugin I found for Firefox is called "Execute JS". You can find it here: https://addons.mozilla.org/en-US/firefox/addon/1729

It will work in all windows including those that sometimes disable the URL option
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
fun, tricks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:13 PM.