We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Quite possibly the most amazing bit of Javascript..

jaydeeuk1
Posts: 7,714 Forumite

... I have ever seen. Oldish news, but still pretty awesome.
Copy and paste this in to notepad, and save with a .htm type
Edit - before people start replying (and who haven't looked it up), can anyone guess what the above code might do? (No, it isn't a virus or a 'hilliarious' popup script.)
Copy and paste this in to notepad, and save with a .htm type
<html> <body> <script> for(B=i=y=u=b=i=5-5,x=10,I=[],l=[];B++<304;I[B-1]=B%x?B/x%x<2|B%x<2?7:B/x&4?0:l[i++]="ECDFBDCEAAAAAAAAIIIIIIIIMKLNJLKM@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK IDHGFE".charCodeAt(y++)-64:7);function X(c,h,e,s){c^=8;for(var o,S,C,A,R,T,G,d=e&&X(c,0)>1e4,n,N=-1e8,O=20,K=78-h<<9;++O<99;)if((o=I[T=O])&&(G=o^c)<7){A=G--&2?8:4;C=o-9?l[61+G]:49;do if(!(R=I[T+=l[C]])&&!!G|A<3||(R+1^c)>9&&G|A>2){if(!(R-2&7))return K;n=G|(c?T>29:T<91)?o:6^c;S=(R&&l[R&7|32]*2-h-G)+(n-o?110:!G&&(A<2)+1);if(e>h||1<e&e==h&&S>2|d){I[T]=n;I[O]=0;S-=X(c,h+1,e,S-N);if(!(h||e-1|B-O|T-b|S<-1e4))return W(),c&&setTimeout("X(8,0,2),X(8,0,1)",75);I[O]=o;I[T]=R}if(S>N||!h&S==N&&Math.random()<.5)if(N=S,e>1)if(h?s-S<0:(B=O,b=T,0))break}while(!R&G>2||(T=O,(G||A>2|(c?O>78:O<41)&!R)&&++C*--A))}return-K+768<N|d&&N}function W(){i="<table>";for(u=18;u<99;document.body.innerHTML=i+=++u%x-9?"<th width=60 height=60 onclick='I[b="+u+"]>8?W():X(0,0,1)'style='font-size:50px'bgcolor=#"+(u-B?u*.9&1||9:"d")+"0f0e0>&#"+(I[u]?9808+l[67+I[u]]:160):u++&&"<tr>")B=b}W() </script> </body> </html>
Edit - before people start replying (and who haven't looked it up), can anyone guess what the above code might do? (No, it isn't a virus or a 'hilliarious' popup script.)
0
Comments
-
0
-
I glimpsed at the code, and didn't have a clue what it was going to do. I was actually quite gob-smacked when I ran it. :eek:0
-
I like that!
How on earth do you work out something like that in a piece of javascript that small?:wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:
Any posts are my opinion and only that. Please read at your own risk.0 -
UsernameAlreadyExists wrote: »I was actually quite gob-smacked when I ran it.
'ave a look at this then - it's a video game in 96K.0 -
Well damn. I wasn't expecting that.-TangleFoot- wrote: »
That's pretty much where I was aiming for, Pong or Breakout.0 -
I googled the code as I'm not going to run that on my machine (nothing personal OP).
Very impressive from 1 little line!0 -
-
I've just made a few moves and the IE decided to tell me the script is making my broswer run slowly.
Anyone else have that problem?:wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:
Any posts are my opinion and only that. Please read at your own risk.0 -
-
Nor en passant. Still, allows for bong cloud opening moves0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.8K Banking & Borrowing
- 253.4K Reduce Debt & Boost Income
- 454K Spending & Discounts
- 244.7K Work, Benefits & Business
- 600.2K Mortgages, Homes & Bills
- 177.3K Life & Family
- 258.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards