loading...
Cover image for πŸ˜› Useless Code for Tinder πŸ˜›

πŸ˜› Useless Code for Tinder πŸ˜›

kojikanao profile image Koji (he/him) ・1 min read

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)

For like button

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

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)

Posted on by:

kojikanao profile

Koji (he/him)

@kojikanao

Looking for opportunities! Software Engineer in NYC/Research Resident@NYU-ITP18-19 Mostly I work with reactjs and sometimes python. code to do something weird/useless/helpful Japanese

Discussion

pic
Editor guide
 

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

 

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

 

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

 

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

 
 

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

 

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

 

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

 

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

 

i just noticed that a couple of days ago lol

 

I will definitely use it

 

Very similar to my instagram "bot" πŸ€” πŸ˜‚

 

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

 

What do each of these do?

 

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