Trying to add timing delays between the auto actions, any help?
So I know nothing about coding... At all. I am using this script and trying to just add in random timeouts between things so it isn't so exact. I was just trying to stick them in random places around the salary but it never does anything. Help a noob anyone?
var getSalary = function () {
try { //Two seconds will elapse and Code will execute. doesnt work here
if ($("#breadcrumbs span").last().text() === "Harem") {
console.log("Detected Harem Screen. Fetching Salary");
$("#harem_whole #harem_left .salary:not('.loads') button").each(function (index) {
setTimeout(20000);$(this).click();
});
setTimeout(20000);document.cookie = "nextSalaryTime=;";
}
else {setTimeout(20000); //Two seconds will elapse and Code will execute. doesnt work here
// Not at Harem screen then goto the Harem screen.
console.log("Navigating to Harem window.");
sessionStorage.autoLoop = "false";
window.location = window.location.origin + $("nav div[rel='content'] a:has(.harem)").attr("href");
return;
}
}
catch (ex) {
console.log("Could not collect salary... " + ex);
}
};
Trying to add timing delays between the auto actions, any help?
So I know nothing about coding... At all. I am using this script and trying to just add in random timeouts between things so it isn't so exact. I was just trying to stick them in random places around the salary but it never does anything. Help a noob anyone?
var getSalary = function () { try { //Two seconds will elapse and Code will execute. doesnt work here if ($("#breadcrumbs span").last().text() === "Harem") { console.log("Detected Harem Screen. Fetching Salary"); $("#harem_whole #harem_left .salary:not('.loads') button").each(function (index) { setTimeout(20000);$(this).click(); }); setTimeout(20000);document.cookie = "nextSalaryTime=;"; } else {setTimeout(20000); //Two seconds will elapse and Code will execute. doesnt work here // Not at Harem screen then goto the Harem screen. console.log("Navigating to Harem window."); sessionStorage.autoLoop = "false"; window.location = window.location.origin + $("nav div[rel='content'] a:has(.harem)").attr("href"); return; } } catch (ex) { console.log("Could not collect salary... " + ex); } };