Skip to content

Instantly share code, notes, and snippets.

@jimywork
Last active March 11, 2019 21:00
Show Gist options
  • Save jimywork/7ace4b83b14dd3a2a1ee247abd772284 to your computer and use it in GitHub Desktop.
Save jimywork/7ace4b83b14dd3a2a1ee247abd772284 to your computer and use it in GitHub Desktop.
var tinder = {
swipe: function (interval) {
this.id = setInterval(function(){
this.swiped = document.querySelector('[aria-label="Curti"]');
this.swiped.click()
}, interval);
},
message: function(msg, interval) {
this.id = setInterval(function(){
var matches = document.querySelector('.recCard__img'),
forms = document.querySelectorAll('.sendMessageForm');
matches.click();
setTimeout(function(){
message = document.querySelector('.sendMessageForm__input')
message.value = msg;
}, 1);
}, interval)
},
stop: function() {
clearInterval(this.id)
}
}
tinder.message('😍 ❤️', 4000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment