Skip to content

Instantly share code, notes, and snippets.

@korrio
Forked from flexbox/tinder-like.js
Created June 5, 2019 08:37
Show Gist options
  • Save korrio/0e8058460d8cfa68d5a0b903878ded1a to your computer and use it in GitHub Desktop.
Save korrio/0e8058460d8cfa68d5a0b903878ded1a to your computer and use it in GitHub Desktop.
// Copy paste this script on your console
var disabled = false;
var r = confirm('Start the Autolike on this page?');
var min_time_to_decide = 300;
var max_additional_time_to_decide = 1000;
var time_to_decide = function() {
additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide);
return min_time_to_decide + additional_time_to_decide;
}
var like_that_ass = function() {
if (!disabled) {
if (r == true) {
document.querySelector('[aria-label="Like"]').click();
console.log('❤️ like');
};
setTimeout(like_that_ass, time_to_decide());
};
}
setTimeout(like_that_ass, time_to_decide());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment