Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing a Javascript File (Weird synthax)

Status
Not open for further replies.

Fanho

Technical User
May 27, 2008
1
JP
Hello, I need to edit this javascript file to disable some of it's functions.
But I just can't understand a thing to this synthax.
Is this a normal Javascript Synthax or is it coded or compiled?
Is it possible to do something to the file to make it legible again ?

Thanks in advance.

Stef

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('G o=8 m({F:3(5,7){0.E({H:I.K.D,L:C,w:x,s:m.y,g:1},7);0.5=$(5),0.4=0.5.q(\'d.B\');0.5.A(\'d\').z(3(2){2.k(\'J\',3(){0.l(2)}.b(0));2.k(\'11\',3(){0.l(0.4)}.b(0));2.k(\'X\',3(9){0.u(9,2)}.b(0))}.b(0));0.6=8 p(\'d\').r(\'Y\').Z(8 p(\'12\').r(\'h\')).U(0.5);0.6.t=0.6.P(0.7);j(0.4){0.a(0.4)}O{0.a(0.5.q(\'d\'))}},a:3(c){0.6.Q({h:(c.i)+\'n\',v:(c.e)+\'n\',T:\'S\',g:0.7.g});0.4=c},u:3(9,2){j(!0.4)0.a(2,R);0.4=2;0.7.s(8 10(9),2)},l:3(f){j(!0.4)V;0.6.t.M({h:[0.6.i,f.i],v:[0.6.e,f.e]})}});o.W(8 N);',62,65,'this||item|function|current|menu|back|options|new|event|setCurrent|bind|el|li|offsetWidth|to|opacity|left|offsetLeft|if|addEvent|moveBg|Class|px|YOOFancyMenu|Element|getElement|addClass|onClick|fx|clickItem|width|wait|false|empty|each|getElements|active|500|sineInOut|setOptions|initialize|var|transition|Fx|mouseover|Transitions|duration|custom|Options|else|effects|setStyles|true|visible|visibility|injectInside|return|implement|click|background|adopt|Event|mouseout|div'.split('|'),0,{}))

 
It looks like Javascript without all of the carriage returns and line spaces and other formatting.

I would put it in a text program and reinsert all of the formating by hand until I had something that I could understand. There might even be a script that could do it for you, but I have never seen one.

mmerlinn


"Political correctness is the BADGE of a COWARD!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top