Skip to content

Instantly share code, notes, and snippets.

@anandbarnwal
Forked from flexbox/tinder-like.js
Created May 2, 2020 07:11
Show Gist options
  • Select an option

  • Save anandbarnwal/cee6f76b3fe64b23ceb6d8e5658599f9 to your computer and use it in GitHub Desktop.

Select an option

Save anandbarnwal/cee6f76b3fe64b23ceb6d8e5658599f9 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