Created
November 12, 2023 20:04
-
-
Save rainb3rry/8bf793ec63506ed430b6c0947fb8edea to your computer and use it in GitHub Desktop.
tinder auto swiper javascript function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var count = 0; | |
var bypass = 0; | |
var blacklist = ['trans', 'chubby', '🏳️⚧️', 'ladyboy', 'shemale']; | |
async function do_act() { | |
count++ | |
let name = document.querySelectorAll('[itemprop="name"')[1].textContent; | |
let desc = ''; | |
if (document.querySelectorAll('[class="BreakWord Whs(pl) Typs(body-1-regular) Ta(start) LineClamp(5,118.120px)"')[1]) { | |
desc = document.querySelectorAll('[class="BreakWord Whs(pl) Typs(body-1-regular) Ta(start) LineClamp(5,118.120px)"')[1].textContent; | |
} | |
let act = 3; | |
for (i = 0; i < blacklist.length; i++) { | |
var re = new RegExp(blacklist[i], 'i') | |
if (-1 != name.search(re) || -1 != desc.search(re)) { | |
act = 1; | |
bypass++ | |
console.log({name: name, desc: desc, catch_word: blacklist[i], bypass_count: bypass, total_count: count}) | |
break; | |
} | |
} | |
console.log({name: name, desc: desc, total_count: count}) | |
document.querySelectorAll('.recsCardboard__cards>div:last-child [type="button"]')[act].click(); | |
setTimeout(() => do_act(), 500); | |
} | |
do_act(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment