diff --git a/tampermonkey.js b/tampermonkey.js index 8feed56..123bb11 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -170,8 +170,10 @@ function winCounty(countyJson, saveChanges) { //if we made it here no changes were needed to win by just the right amount //Nothing else to do to win optimally console.log(countyInfo +" is already winning by just the right amount"); + //awLog(countyInfo +" is already winning by just the right amount"); } else if(countyJson.clicksToMinWin > 0) { console.log(countyInfo +" is currently loosing. Increasing bid now"); + //awLog(countyInfo +" is currently loosing. Increasing bid now"); for(var i = 0; i < countyJson.clicksToMinWin; i++) { console.log("calling btnBidUp.click() for "+ countyInfo); countyJson.btnBidUp.click(); @@ -182,6 +184,7 @@ function winCounty(countyJson, saveChanges) { } } else if (countyJson.clicksToMinWin < 0) { console.log(countyInfo +" is winning by too much. Decreasing bid now"); + //awLog(countyInfo +" is winning by too much. Decreasing bid now"); let clicksRemaining = Math.abs(countyJson.clicksToMinWin); while(clicksRemaining > 0) { console.log("calling btnBidDown.click() for "+ countyInfo); @@ -199,6 +202,11 @@ function tieCounty(countyJson, saveChanges) { //TODO: implemnt me } +function awLog(message) { + console.log(message); + //const currentContent = document.getElementById("awLog").innerHTML; + document.getElementById("awLog").innerHTML = currentContent + message; +} jQuery(window).on('load',function() { console.log("Page loaded at: "+ new Date()); @@ -212,7 +220,7 @@ jQuery(window).on('load',function() { //Inject our controls var newHTML = document.createElement ('div'); - newHTML.innerHTML = '