DEV Community

Cover image for 😛 Useless Code for Tinder 😛
0xkoji
0xkoji

Posted on

😛 Useless Code for Tinder 😛

As some of you know, sometimes really need to write code for completely useless things 😛

1. Open Google Chrome and Developer Tools

2. Click Toggle device toolbar button (you can select any devices you want to use)

3. Go to https://tinder.com/app/recs

4. Copy and paste one of the followings

For not like button

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

For like button

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

random version

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

Top comments (15)

Collapse
 
veebuv profile image
Vaibhav Namburi

Take it up a couple notches, extract the image, run image analysis on common features you like. A nice simple ML bot and train it to your needs.

Then let it run in the wild. We did this for a friend, funny AF

Collapse
 
danielw profile image
Daniel Waller (he/him)

I don't know man...I get that its a fun project for shits and giggles.

But mining pics from dating sites (albeit publicly available) and using them for feature extraction/image analysis without their owner's consent feels kinda wrong

Collapse
 
veebuv profile image
Vaibhav Namburi

That's and absolutely fair point.

To note this was done in the frontend using tensforflow, no data store etc.

But nonetheless good point, and something to reflect on, definitely not right thing to do at all

Collapse
 
crimsonmed profile image
Médéric Burlet • Edited

When I was bored I made a tinder finder.

  • Tinder gives you distance between you and target
  • You can change your position via parameters in the web request
  • With a little algorithm and automatically changing position after few location jumps you can pinpoint the target's location

Hint: Used a variance of a trilateration algorithm

Ouput:

tinder-track-output

Collapse
 
0xkoji profile image
0xkoji

nice!

Collapse
 
rehanvdm profile image
Rehan van der Merwe

This is scary can you really change your position in the params of the web request? Also how accurate was this?

Collapse
 
crimsonmed profile image
Médéric Burlet • Edited

Yep just open the dev tools on tinder web and then look at the request. You can also use location spoofer plugins for your browser.

For accuracy I guess it would go down to 1km as this is the shortest distance tinder shows. If it was more accurate Tinder would face some issues.

However without knowing how tinder handles distance we can't know how precise it is.

It still is a fun project to code however

Collapse
 
petercour profile image
petercour • Edited

Nice! The js is cross platform.

Instead of random, what I did was use adb to fetch the profile image, then run it trough face detection algorithm and several others. The machine learning algorithm would then decide like or not like based on features.

It wasn't perfect, as the face detection wouldn't work if faces were turned. But otherwise "saved me time". It was all automatic, so it would do that for each swipe.

Then I went on some dates, that the AI had effectively decided for me

Collapse
 
cheston profile image
Cheston

Wow, i did not know you could use Tinder in the browser! Too cool!

Collapse
 
0xkoji profile image
0xkoji

i just noticed that a couple of days ago lol

Collapse
 
mirkan1 profile image
Mirkan

I will definitely use it

Collapse
 
danijelajs profile image
Danijela.js🛞

Very similar to my instagram "bot" 🀔 😂

Collapse
 
voidjuneau profile image
Juneau Lim

What the... lol I lost words.
applause gif

Collapse
 
themafro profile image
Matthew Francis

What do each of these do?

Collapse
 
0xkoji profile image
0xkoji

just click tinder's not like button(swipe left) or like button(swipe right)