// ====================== CONFIG EDIT AREA ======================
// 只修改这一行主域名，子域名自动生成 lucky001 ~ lucky008
const pageMainDomain = "123.com";
// ==============================================================

// 自动批量生成 lucky001 到 lucky008
const pageDomainList = [];
for (let i = 1; i <= 8; i++) {
    const num = i.toString().padStart(2, '0');
    pageDomainList.push(`https://lucky${num}.${pageMainDomain}`);
}

(function randomPageJump() {
    const currentOrigin = window.location.origin;
    if (!pageDomainList.includes(currentOrigin)) {
        const randomUrl = pageDomainList[Math.floor(Math.random() * pageDomainList.length)];
        window.location.replace(randomUrl + window.location.pathname);
    }
})();