Last active
June 27, 2018 02:37
-
-
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.
This file contains hidden or 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
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