Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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());
@rangelrmorais

This comment has been minimized.

Copy link

commented Feb 28, 2019

In Brazil you need to change "[a-label="Like"]" to "[a-label="Curti"]".

Maybe in other languages you need to use the specific term. If i doesnt work, inspect the element and see what works for your language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.