๐Ÿ˜› ํ‹ด๋”๋ฅผ ์œ„ํ•œ ์“ธ๋ชจ์—†๋Š” ์ฝ”๋“œ ๐Ÿ˜›

3413 ๋‹จ์–ด javascript
์•„์‹œ๋‹ค์‹œํ”ผ ๋•Œ๋กœ๋Š” ์™„์ „ํžˆ ์“ธ๋ชจ์—†๋Š” ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•ด์•ผ ํ•  ๋•Œ๋„ ์žˆ์Šต๋‹ˆ๋‹ค ๐Ÿ˜›

1. ๊ตฌ๊ธ€ ํฌ๋กฌ ๋ฐ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ



2. ์žฅ์น˜ ๋„๊ตฌ ๋ชจ์Œ ์ „ํ™˜ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค(์‚ฌ์šฉํ•˜๋ ค๋Š” ์žฅ์น˜๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Œ).



3. https://tinder.com/app/recs๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.



4. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ ๋ถ™์—ฌ๋„ฃ๊ธฐ


not like ๋ฒ„ํŠผ์šฉ

setInterval(
     () => {
        const ele = document.getElementsByClassName("recsGamepad__button");
        ele[1].click();
    }, 2000)

like ๋ฒ„ํŠผ์šฉ

setInterval(
     () => {
        const ele = document.getElementsByClassName("recsGamepad__button");
        ele[3].click();
    }, 2000)


๋žœ๋ค ๋ฒ„์ „




setInterval(
     () => {
        const ele = document.getElementsByClassName("recsGamepad__button");
        const rand = Math.random();
        if(rand >= 0.5) {
          ele[1].click();
        } else {
          ele[3].click();
        }
    }, 2000)

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ