Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
2.6 kB
2
Indexable
Never
await Delay(Random(2500,3000));
await WaitForLoading();
var clicks = Random(2,4);
await Delay(Random(2500,3000));
var myDomain = "lebinh.com.vn";
let random_myDomain = RandomArray([
"tuoitrethudo.com.vn/le-binh-dai-ly-phan-phoi-may-phun-chong-tham-2-thanh-phan-graco-uy-tin-chat-luong-211435.html",
"hanoma.vn/ban-may-phun-son-graco-390pc-56321.pro",
"xemhuongnha.edu.vn/cac-thuong-hieu-may-bom-cong-nghiep-noi-tieng-nhat"
]);
await EvaluateScript("window.open('https://" + random_myDomain + "','_self')");
await Delay(Random(2500,3000));
await WaitForLoading();
        myTargetXpath = GenerateXpath("a", "href", "%" + myDomain + "%");
        foundLink = await GetAttribute(myTargetXpath, "href");
        if ( foundLink ) {
            await ClickByXpath(myTargetXpath);
        }
        await Delay(Random(2500,3000));
        await WaitForLoading();
        do { //scroll
            scrl = Random(3,9);
            for (var i = 1; i < scrl; i++) {
                await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);");
                await Delay(Random(100,150));
            }
            await Delay (Random(1000,1500));
        } while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight"))
        await Delay(Random(5000,7000));
        await ClickRandomInternalLink(true);
        do { //scroll
            scrl = Random(3,9);
            for (var i = 1; i < scrl; i++) {
                await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);");
                await Delay(Random(100,150));
            }
            await Delay (Random(1000,1500));
        } while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight"))
        await Delay(Random(5000,7000));
        await ClickRandomInternalLink(true);
        do { //scroll
            scrl = Random(3,9);
            for (var i = 1; i < scrl; i++) {
                await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);");
                await Delay(Random(100,150));
            }
            await Delay (Random(1000,1500));
        } while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight"))
    while (--clicks)
    await Delay(Random(5000,7000));
    await WaitForLoading();
Exit();