Skip to content

Instantly share code, notes, and snippets.

@ljahier
Created August 13, 2023 18:32
Show Gist options
  • Save ljahier/7b54702a026d5451fe6e6ed23e0a8839 to your computer and use it in GitHub Desktop.
Save ljahier/7b54702a026d5451fe6e6ed23e0a8839 to your computer and use it in GitHub Desktop.
Tinder Auto Like
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