Badoo-Autolike
Badoo-Autolike copied to clipboard
Fix like
var oldurl = "";
var AutoYesService; var RemoveAlertService;
var running = 1;
var URLHandlerService = setInterval(URLHandler, 1000);
function URLHandler() { if(window.location.href.indexOf("encounters") > -1) { if(window.location.href != oldurl){ AutoYesService = setInterval(AutoYes, 50); RemoveAlertService = setInterval(RemoveAlert, 50); } } else { if(running == 1){ clearInterval(AutoYesService); }
clearInterval(RemoveAlertService);
}
oldurl = window.location.href;
}
function AutoYes() { if(window.location.href.indexOf("encounters") > -1) { if(typeof document.getElementsByClassName('wizard_cloud')[0] == "undefined" && running == 1){ document.getElementsByClassName('profile-action profile-action--yes profile-action--stroke')[0].click(); } else { running = 0; clearInterval(AutoYesService); } } }
function RemoveAlert() { if(window.location.href.indexOf("encounters") > -1) { if(typeof document.getElementsByClassName('wizard_cloud')[0] == "undefined" || running == 0){ for (i = 0; i < document.getElementsByClassName('js-ovl-close').length; i++) { document.getElementsByClassName('js-ovl-close')[i].click(); } } } }
Hi. This script is not being maintained anymore. I am using this one now instead:
https://github.com/nemanjan00/BadooNearbyLike
If you would still like this one to be fixed, please, send proper PR.
Thanks! :D