The format of what I need to modify has changed and is now something like:
Code: Select all
<script type="text/javascript">
//<![CDATA[
<!--
var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
"=48){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
".substr(0,ol);}f(\")19,\\\"330\\\\/%4>%{6$rxzq~}C0.V|~av 030\\\\720\\\\r\\\\"+
"630\\\\!S230\\\\100\\\\400\\\\'K;X600\\\\r\\\\+4/yut\\\\8$a*9&i+* RR_\\\\\\" +
"\\ZZ@qJCDLJJP330\\\\piwpvx1M2kn{o%b=\\\\\\\\T420\\\\420\\\\320\\\\000\\\\33" +
"0\\\\200\\\\130\\\\B630\\\\600\\\\300\\\\t\\\\720\\\\300\\\\18\\\"(f};o nru" +
"ter};))++y(^)i(tAedoCrahc.x(edoCrahCmorf.gnirtS=+o;721=%y;++y)19<i(fi{)++i;" +
"l<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i rav{)y,x(f noitcnuf\")" ;
while(x=eval(x));
//-->
//]]>
</script>
<script type="text/javascript">Someone();</script>
to make it a callable function.
Basically, I need to top and tail the javascript, and insert a { at the top, and a } at the bottom - but exactly where?
I have tried putting the { before the first var and } after the last semicolon, but it doesn't seem to work.
Help!