Skip to content

Instantly share code, notes, and snippets.

@drewchapin
Last active June 27, 2018 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewchapin/97784b89774ad09ba313338425f0b049 to your computer and use it in GitHub Desktop.
Save drewchapin/97784b89774ad09ba313338425f0b049 to your computer and use it in GitHub Desktop.
JavaScript you can paste in Firefox Scratchpad to Like everyone until you run out of likes. Obviously, you have to use this with the web-browser version of Tinder.
function outOfLikes() {
var h3 = document.getElementsByTagName("h3");
for( var i = 0; i < h3.length; i++ ) {
if( h3[i].innerText == "You're Out of Likes!" ) {
return true;
}
}
}
function likeHer() {
var like = document.querySelector('[aria-label="Like"]');
like.click();
if( !outOfLikes() ) {
setTimeout(likeHer,500);
}
}
likeHer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment