Silly weekend playaround to reduce some time spent with tinder :-)
-
Login on tinder with Safari / Chrome / Firefox (
$x
must be available in console) -
Open Console from developer tools
-
copy & paste below code and hit enter
let b1 = $x( '//*[@id="c2094796203"]/div/div[1]/div/div/main/div/div[1]/div[1]/div/div[4]/div/div[4]/button' )[0], b2 = $x( '//*[@id="c2094796203"]/div/div[1]/div/div/main/div/div[1]/div[1]/div/div[5]/div/div[4]/button' )[0], like = () => { b1.click(); b2.click(); }, intervalTimer = setInterval(like, 500);
-
make sure to stop it when you're out of your free likes running
clearInterval(intervalTimer);
// ==UserScript==
// @name Tinder Autoliker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://tinder.com/app/recs
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
let likeCounter = 0;
const doLike = () => {
const likeBtn = document.querySelector("button[data-testid='gamepadLike']");
if (likeBtn) {
likeBtn.click();
likeCounter++;
console.log(`Liked: ${likeCounter}`);
}
};
setTimeout(() => {
const intervalTimer = setInterval(doLike, 1500);
}, 5000);
})();
Tinder is constantly working on the UI, hence the Xpaths to the button might change. The script would always work with updated Xpaths though.