Skip to content

Instantly share code, notes, and snippets.

@rainb3rry
Created November 12, 2023 20:04
Show Gist options
  • Save rainb3rry/8bf793ec63506ed430b6c0947fb8edea to your computer and use it in GitHub Desktop.
Save rainb3rry/8bf793ec63506ed430b6c0947fb8edea to your computer and use it in GitHub Desktop.
tinder auto swiper javascript function
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