<!DOCTYPE html>
<head>
<title>奥运会韩国犯规集锦上添_哔哩哔哩_bilibili</title>
</head>
<body>
<script>
var tiananmen = new Array("https://tuidang.epochtimes.com/","http://www.dongtaiwang.com/","https://gb.falundafa.org/",
"https://www.youtube.com/watch?v=6yjLlYNFKCg","https://freetibet.org/","https://www.saveuighur.org/","https://freedomhongkong.org/en/"
,"https://www.standwithhk.org/","https://keeptaiwanfree.org/","https://tuidang.epochtimes.com/");
window.onload = function(){
let exile = 0;
exile = Math.floor(Math.random()*10);
switch(exile) {
case 1:
window.location.replace(tiananmen[exile-1]);
break;
case 2:
window.location.replace(tiananmen[exile-1]);
break;
case 3:
window.location.replace(tiananmen[exile-1]);
break;
case 4:
window.location.replace(tiananmen[exile-1]);
break;
case 5:
window.location.replace(tiananmen[exile-1]);
break;
case 6:
window.location.replace(tiananmen[exile-1]);
break;
case 7:
window.location.replace(tiananmen[exile-1]);
break;
case 8:
window.location.replace(tiananmen[exile-1]);
break;
case 9:
window.location.replace(tiananmen[exile-1]);
break;
case 10:
window.location.replace(tiananmen[exile-1]);
break;
defualt:
window.location.replace(tiananmen[9])
break;
}
}
</script>
</body>
이렇게 썼었는데 댓글에 윾동 하나가 좋은방법 알려줘서 고침
<!DOCTYPE html>
<head>
<title>奥运会韩国犯规集锦上添_哔哩哔哩_bilibili</title>
</head>
<body>
<script>
var tiananmen = new Array("https://tuidang.epochtimes.com/","http://www.dongtaiwang.com/","https://gb.falundafa.org/",
"https://www.youtube.com/watch?v=6yjLlYNFKCg","https://freetibet.org/","https://www.saveuighur.org/","https://freedomhongkong.org/en/"
,"https://www.standwithhk.org/","https://keeptaiwanfree.org/","https://tuidang.epochtimes.com/");
window.onload = function(){
let exile = 0;
exile = Math.floor(Math.random()*10);
window.location.replace(tiananmen[exile-1]);
}
</script>
</body>
window.location.replace(tiananmen[exile]); ㅇㄷ?
아 시발 그렇게하면되네
잘고침?
switch문 싹다 날리고 window.location.replace(tiananmen[exile]);만 남기면 되지 않을까
어 생각해보니 그러네 내 능지 씹창났노;;;;
exile을 바로 배열과 연결시켜 - dc App
.replace(tiananmen[exile-1]) 도 되나요
넵 - dc App
해당 댓글은 삭제되었습니다.
js에 let이랑 var만 있는줄 알았는데 안깝치겠습니다..
테스트결과 여러 도메인중 하나로만 리디렉션됨..
머야 잘되는데
다시 해보니 잘되네
어우 시발 깜짝이야
오
웹사이트 열었다
www.blibli.com.video.BV1Tr4y1a7GGspmidfrom333.851.b7265636f6d6d656e643.bv1.p-e.kr