Created
August 13, 2023 18:32
-
-
Save ljahier/7b54702a026d5451fe6e6ed23e0a8839 to your computer and use it in GitHub Desktop.
Tinder Auto Like
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
class TinderAutoLike { | |
likeBtn; | |
dislikeBtn; | |
intervalBetweenClick = 1000; | |
setIntervalId; | |
gamePad; | |
constructor() { | |
this.gamePad = document.getElementsByClassName('recsCardboard__cards')[0].children; | |
} | |
start() { | |
this.setIntervalId = setInterval(() => { | |
this._getGamePadBtns(); | |
this._getLikeButton(); | |
this.likeBtn.click(); | |
}, this.intervalBetweenClick + Math.floor(Math.random() * 1000)); | |
} | |
stop() { | |
clearInterval(this.setIntervalId); | |
} | |
_getGamePadBtns() { | |
if (this.gamePad.length === 3) { | |
this.gamePad = this.gamePad[2]; | |
} else if (this.gamePad.length === 4) { | |
this.gamePad = this.gamePad[3]; | |
} | |
} | |
_getLikeButton() { | |
this.likeBtn = this.gamePad.getElementsByTagName('button')[3]; | |
} | |
} | |
const tal = new TinderAutoLike(); | |
tal.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment