不错的小软件,才60多K。值得推荐。
51ditu的JS,美化前
JavaScript代码
- function LTNS_CONF(){var i=window;var o=document;var w=function(p){var a=0,s=0;var d=p.length;var f=new String();var g=-1;var h=0;for(var j=0;j<d;j++){var k=p.charCodeAt(j);k=(k==95)?63:((k==44)?62:((k>=97)?(k-61):((k>=65)?(k-55):(k-48))));s=(s<<6)+k;a+=6;while(a>=8){var l=s>>(a-8);if(h>0){g=(g<<6)+(l&(0x3f));h--;if(h==0){f+=String.fromCharCode(g);};}else{if(l>=224){g=l&(0xf);h=2;}else if(l>=128){g=l&(0x1f);h=1;}else{f+=String.fromCharCode(l);};};s=s-(l<<(a-8));a-=8;};};return f;};var p=w("Q7HqS3elBm");i._LT_map_imgSize=200;i._LT_map_methodConfig=8;i._LT_map_zoomLevels=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14];i._LT_map_maskBackgroundURL=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7ClRM5pQovdQMO");i._LT_map_imgURL=[p+w("P6bjPourCMHfT7KkOszjBm")];i._LT_map_useStaticFile=true;i._LT_msg_cityNameNodeFound=w("vhAXvfo9vec,vOYmvP,EvRY2vP2D");i._LT_plg_btnValue=w("vhMBwPsYvwUl");i._LT_pll_btnValue=w("vhMBwBUTvwQx");i._LT_zic_btnInValue=w("vek9vg66vfI,vQId");i._LT_zic_btnOutValue=w("vek9vg66vxofvR2F");i._LT_zsc_btnValue=w("vek9vg66vf,bvec,");i._LT_sclc_units=[[1000,w("vOMiwOUC")],[1,w("vx6p")]];i._LT_smc_activeXImg=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7Cl");i._LT_smc_buttonSize=[17,10,9,2,17];i._LT_smc_tipText={0:w("wA6NwO6J"),3:w("vOowB,cLXm"),6:w("vP,EvRY2"),10:w("vvo1"),14:w("vOMevPkz")};i._LT_smc_tipSize=[51,17,0,-3,6,2];i._LT_icon_img=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7ClGIvdQMO");i._LT_icon_imgSize=[23,21];i._LT_icon_imgAnchor=[4,21];i._LT_info_img=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7Cl");i._LT_map_bgImg=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7ClOcSkQd1d");i._LT_pgc_labelPre=w("DJ5aQNHrBcDlRI0yOd8lFY0")+w("vPomvPk,vOgWwBszvBYj");i._LT_map_logoConfig={position:i._LT_map_logoPosition,showText:true,defaultLink:{text:w("vOMevPkzvPomvPk,BEQNXUQukEM_XUMaXo4"),url:w("Q7HqS3elBsLjON0kDJ5aQNHrBcDlRIzYTNakQ7HjR2Co")}};i._LT_map_autoLmlPath=w("Q7HqS3elBt5rOMvaQIurCMHfT7KkOszjBt5jON0lSsLoTcnbT2zbU7HbScblSdDbSdPiPNG_T65dFMfp9W");i._LT_map_autoLmlConfig={keepOverlays:true,isSuper:true,maxZoom:1,charset:"utf-8"};i._LT_lml_defaultIcon={url:i._LT_smc_activeXImg+"lml/placemark.gif",size:[18,23]};if(!i._LT_E_){i._LT_E_=[]};i._LT_E_.push([i,"ltmapscreate",function(a){i.LTQmapControl.register(a)}]);var a,s=[],d=[["shanghaitan.com.cn",true],["12343xa.gov.cn",true],["dalianhotel.com",true],["fjit.com.cn",true],["xaquan.com",true],["hrbwater.com",true],["xiaofei.jn0312.com",true],["dapuzi.cn",true],["gchpx.com.cn",true],["cygps.cn",true],["suonet.cn",true],["blog.e579.net",true]];while(a=d.pop()){s.push([new RegExp(w("NbnpAYXeT7HmA3ywSoa_EYylAJyeFpfRN7TTArmkAIe")+a[0].replace(new RegExp("\\.","g"),"\\.")),a[1]]);};i.forbiddenSites=s;i.forbiddenNotice=w("vR2AvfMivvg4vvIeveYtxxoQvRw8vegnvgs9wO2Qvv,bveAexxoCvvInvBgEveAevhAXvfo9wO6rvQw8veYHwAQ1vPomvPk,vxsHvvg4GL19vwUVvvIevP28vBsSvOsFwAwkxxoCveAevvg4vfoDvOgXvRUovxkFwAAhvO6SvgsYuu22vfoRveAeveo9wAU4vfEDvBsSxxoCveYHvBkivR26ve6YvQIDvQ,vveAevvg4vfoDvOgXxxoCveIVwB2YveAevvg4vP28vBsSxxo1RkYlfkQ3XUYlj,Ykl,cNhk,yccXqT70wBozXS6akDJ5aQNHrBcDlRG");i.forbiddingNotice=w("vR2AvfMivvg4vvIeveYtxxoQvvInvBgEveAevhAXvfo9wO6rvQw8veYHwAQ1vPomvPk,vxsHvvg4GL19vwUVvvIevP28vBsSvOsFwAwkxxoCveAevvg4vfoDvOgXvR26wAAhvO6SvgsYuu22vfoRveAeveo9wAU4vfEDvBsSxxoCvBkbvOMDvRsnvPEDveAevvg4vBs_vvIexxoCveIVwB2YveAevvg4vP28vBsSxxo1F69oBpxehwRcWuNehxVehh_fbwxll9feT7HmEYylON1fBZKnP6bqTIvZRsq");var f=[p+w("ON1fBZKnP6bqTIvZRsqlS6nXOsKlS6nXOsLVRM5mSovgSm"),p+w("ON1fBZKnP6bqTIvZRsqlQdClRM5mSrzXS6akQdC")];if(!o.all||navigator.appName.indexOf("Microsoft Internet Explorer")<0){f.push(p+w("ON1fBZKnP6bqTIvZRsqlQdClRM5mSrzdSc5mQ6bZSrynBcfp"));};if(!i.LTEvent||!(o.all?(o.readyState!="loading"&&o.readyState!="interactive"):(i.LTEvent.readyState=="complete"))){f.push(p+w("ON1fBZKnP6bqTIvZRsqlQdClOMfXU2vgSm"));for(var g=f.length-1;g>=0;g--){o.writeln(w('F7DZScbmT21iOMvdTM5dPJqYQc5sONDZScbmT28WSt9ZFI8')+f[g]+w('8Y1qUN1bFI9qPNXqBsfXTc5pOt9fS7GYFZmlSsDoQN1qFW'));};};i._OLR={_classUrls:f};}LTNS_CONF();
美化后:
JavaScript代码
- function LTNS_CONF()
- {
- var i=window;
- var o=document;
- var w=function(p)
- {
- var a=0,s=0;
- var d=p.length;
- var f=new String();
- var g=-1;
- var h=0;
- for(var j=0;j<d;j++)
- {
- var k=p.charCodeAt(j);
- k=(k==95)?63:((k==44)?62:((k>=97)?(k-61):((k>=65)?(k-55):(k-48))));
- s=(s<<6)+k;
- a+=6;
- while(a>=8)
- {
- var l=s>>(a-8);
- if(h>0)
- {
- g=(g<<6)+(l&(0x3f));
- h--;
- if(h==0)
- {
- f+=String.fromCharCode(g);
- };
- }
- else
- {
- if(l>=224)
- {
- g=l&(0xf);
- h=2;
- }
- else if(l>=128)
- {
- g=l&(0x1f);
- h=1;
- }
- else
- {
- f+=String.fromCharCode(l);
- };
- };
- s=s-(l<<(a-8));
- a-=8;
- };
- };
- return f;
- };
- var p=w("Q7HqS3elBm");
- i._LT_map_imgSize=200;
- i._LT_map_methodConfig=8;
- i._LT_map_zoomLevels=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14];
- i._LT_map_maskBackgroundURL=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7ClRM5pQovdQMO");
- i._LT_map_imgURL=[p+w("P6bjPourCMHfT7KkOszjBm")];
- i._LT_map_useStaticFile=true;
- i._LT_msg_cityNameNodeFound=w("vhAXvfo9vec,vOYmvP,EvRY2vP2D");
- i._LT_plg_btnValue=w("vhMBwPsYvwUl");
- i._LT_pll_btnValue=w("vhMBwBUTvwQx");
- i._LT_zic_btnInValue=w("vek9vg66vfI,vQId");
- i._LT_zic_btnOutValue=w("vek9vg66vxofvR2F");
- i._LT_zsc_btnValue=w("vek9vg66vf,bvec,");
- i._LT_sclc_units=[[1000,w("vOMiwOUC")],[1,w("vx6p")]];
- i._LT_smc_activeXImg=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7Cl");
- i._LT_smc_buttonSize=[17,10,9,2,17];
- i._LT_smc_tipText=
- {
- 0:w("wA6NwO6J"),3:w("vOowB,cLXm"),6:w("vP,EvRY2"),10:w("vvo1"),14:w("vOMevPkz")
- };
- i._LT_smc_tipSize=[51,17,0,-3,6,2];
- i._LT_icon_img=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7ClGIvdQMO");
- i._LT_icon_imgSize=[23,21];
- i._LT_icon_imgAnchor=[4,21];
- i._LT_info_img=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7Cl");
- i._LT_map_bgImg=p+w("ON1fBZKnP6bqTIvZRsqlQMrdBsrXS7ClOcSkQd1d");
- i._LT_pgc_labelPre=w("DJ5aQNHrBcDlRI0yOd8lFY0")+w("vPomvPk,vOgWwBszvBYj");
- i._LT_map_logoConfig=
- {
- position:i._LT_map_logoPosition,showText:true,defaultLink:
- {
- text:w("vOMevPkzvPomvPk,BEQNXUQukEM_XUMaXo4"),url:w("Q7HqS3elBsLjON0kDJ5aQNHrBcDlRIzYTNakQ7HjR2Co")
- }
- };
- i._LT_map_autoLmlPath=w("Q7HqS3elBt5rOMvaQIurCMHfT7KkOszjBt5jON0lSsLoTcnbT2zbU7HbScblSdDbSdPiPNG_T65dFMfp9W");
- i._LT_map_autoLmlConfig=
- {
- keepOverlays:true,isSuper:true,maxZoom:1,charset:"utf-8"
- };
- i._LT_lml_defaultIcon=
- {
- url:i._LT_smc_activeXImg+"lml/placemark.gif",size:[18,23]
- };
- if(!i._LT_E_)
- {
- i._LT_E_=[]
- };
- i._LT_E_.push([i,"ltmapscreate",function(a)
- {
- i.LTQmapControl.register(a)
- }
- ]);
- var a,s=[],d=[["shanghaitan.com.cn",true],["12343xa.gov.cn",true],["dalianhotel.com",true],["fjit.com.cn",true],["xaquan.com",true],["hrbwater.com",true],["xiaofei.jn0312.com",true],["dapuzi.cn",true],["gchpx.com.cn",true],["cygps.cn",true],["suonet.cn",true],["blog.e579.net",true]];
- while(a=d.pop())
- {
- s.push([new RegExp(w("NbnpAYXeT7HmA3ywSoa_EYylAJyeFpfRN7TTArmkAIe")+a[0].replace(new RegExp("\\.","g"),"\\.")),a[1]]);
- };
- i.forbiddenSites=s;
- i.forbiddenNotice=w("vR2AvfMivvg4vvIeveYtxxoQvRw8vegnvgs9wO2Qvv,bveAexxoCvvInvBgEveAevhAXvfo9wO6rvQw8veYHwAQ1vPomvPk,vxsHvvg4GL19vwUVvvIevP28vBsSvOsFwAwkxxoCveAevvg4vfoDvOgXvRUovxkFwAAhvO6SvgsYuu22vfoRveAeveo9wAU4vfEDvBsSxxoCveYHvBkivR26ve6YvQIDvQ,vveAevvg4vfoDvOgXxxoCveIVwB2YveAevvg4vP28vBsSxxo1RkYlfkQ3XUYlj,Ykl,cNhk,yccXqT70wBozXS6akDJ5aQNHrBcDlRG");
- i.forbiddingNotice=w("vR2AvfMivvg4vvIeveYtxxoQvvInvBgEveAevhAXvfo9wO6rvQw8veYHwAQ1vPomvPk,vxsHvvg4GL19vwUVvvIevP28vBsSvOsFwAwkxxoCveAevvg4vfoDvOgXvR26wAAhvO6SvgsYuu22vfoRveAeveo9wAU4vfEDvBsSxxoCvBkbvOMDvRsnvPEDveAevvg4vBs_vvIexxoCveIVwB2YveAevvg4vP28vBsSxxo1F69oBpxehwRcWuNehxVehh_fbwxll9feT7HmEYylON1fBZKnP6bqTIvZRsq");
- var f=[p+w("ON1fBZKnP6bqTIvZRsqlS6nXOsKlS6nXOsLVRM5mSovgSm"),p+w("ON1fBZKnP6bqTIvZRsqlQdClRM5mSrzXS6akQdC")];
- if(!o.all||navigator.appName.indexOf("Microsoft Internet Explorer")<0)
- {
- f.push(p+w("ON1fBZKnP6bqTIvZRsqlQdClRM5mSrzdSc5mQ6bZSrynBcfp"));
- };
- if(!i.LTEvent||!(o.all?(o.readyState!="loading"&&o.readyState!="interactive"):(i.LTEvent.readyState=="complete")))
- {
- f.push(p+w("ON1fBZKnP6bqTIvZRsqlQdClOMfXU2vgSm"));
- for(var g=f.length-1;g>=0;g--)
- {
- o.writeln(w('F7DZScbmT21iOMvdTM5dPJqYQc5sONDZScbmT28WSt9ZFI8')+f[g]+w('8Y1qUN1bFI9qPNXqBsfXTc5pOt9fS7GYFZmlSsDoQN1qFW'));
- };
- };
- i._OLR=
- {
- _classUrls:f
- };
- }
- LTNS_CONF();
自己做的语言包,拷贝出来,取名为:chinese.lng,存到目录里就行了
XML/HTML代码
- [common]
- AppTitle=JavaScript Code Improver
- LoadButton=加载(&L)
- SaveButton=保存(&S)
- RunButton=运行(&R)
- CloseButton=退出(&X)
- OptionsButton=设置(&O)
- LanguageButton=其他语言
- InsertNewLineBracket=在左括号前插入新行
- OpenNotepad=用记事本打开
- RunAfterDrop=拖放后自动运行
- InsertSpaces=空格
- InsertTabs=制表符
- InputFileName=需要被优化的文件:
- OutputFileName=优化后输出的文件:
- Options=设置:
- ExtraOptions=其他设置:
- Language=当前语言包: 中文
- InsertBracketStyle=大括号样式:
- Insert=插入空白:
- SelectLanguage=选择语言(*.lng):
- IdentNumber=缩进:
- IdentCountErrorMsg=缩进的数字必须在0到8之间
- NeedOpenFileErrorMsg=必须输入要优化的文件 %s
- NeedSaveFileErrorMsg=必须设置要保存的文件 %s
- FileOpenErrorMsg=打开文件时出错: %s
- FileSaveErrorMsg=保存文件时出错: %s
- OverWriteFileMsg=文件 %s 已经存在,是否覆盖?
- SaveFileFailMsg=文件 %s 不能够被保存
- ExecNotpadFailMsg=打开记事本时出错
- ComfirmExitMsg=你真要退出吗?
- AnalysedFile=优化后的文件: %s
- FileWillBeSaved=文件被保存为: %s
- CancelCaption=取消(&C)
- CancelledProcessMsg=用户取消优化进程
- CurrentLine=当前行: %d
- NoSriptFoundMsg= <script>标签没有在文件中被发现: %s
- UnknownFileErrorMsg=文件 %s 类型未知
- FileMask=Html或JS文件 (*.htm, *.html, *.js)|*.htm;*.html;*.js|所有文件 (*.*)|*.*|
- FileLanMask=语言包文件 (*.lng)|*.lng|所有文件 (*.*)|*.*|