Badoo-Autolike icon indicating copy to clipboard operation
Badoo-Autolike copied to clipboard

Fix like

Open worlak2 opened this issue 6 years ago • 1 comments

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(); } } } }

worlak2 avatar Dec 21 '18 20:12 worlak2

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

nemanjan00 avatar Dec 22 '18 11:12 nemanjan00