encodeURIComponent added

This commit is contained in:
dukesrg 2015-08-09 13:10:21 +03:00
parent 3d43647823
commit a18fc10339
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<html><head><script>
d=document,r=parent,w=window,n=navigator.userAgent;
if(r==w){
g=w.location.search.slice(1).split('&'),l=g[0];
g=w.location.search.slice(1).split('&'),l=decodeURIComponent(g[0]);
w.onload=function(){
if(n.indexOf('1.7538.CN')>=0)n=n.replace('.CN',confirm('系统版本4.2-4.4选择OK系统版本4.5选择取消。')?'.CN.42':'.CN.45');
var h=d.body.childNodes[0];

View File

@ -1,13 +1,13 @@
<html><head><script>
s=window.location.search.slice(1).split('&');
window.location.assign(
window.location.href.replace(/\/[^\/]+$/,'')+'/get?'+'http://nus.cdn.c.shop.nintendowifi.net/ccs/download/000400100002'+{
window.location.href.replace(/\/[^\/]+$/,'')+'/get?'+encodeURIComponent('http://nus.cdn.c.shop.nintendowifi.net/ccs/download/000400100002'+{
'P':'0000/00000022',
'S':'1000/0000002D',
'U':'2000/00000023',
'N':'6000/00000006',
'R':'7000/0000000D',
'W':'8000/00000005'
}[navigator.userAgent.slice(-1)]+(s[0].length>1?'&'+s[0]:'')
}[navigator.userAgent.slice(-1)])+(s[0].length>1?'&'+s[0]:'')
);
</script></head></html>