const urls = [
"https://www.apple.com",
"https://www.google.com",
"https://www.twitter.com"
];
const randomIndex = Math.floor(Math.random() * urls.length);
window.location.href = urls[randomIndex];
setInterval(() => {
const idx = Math.floor(Math.random() * urls.length);
window.location.href = urls[idx];
}, 30000); // 每 30 秒跳轉一次