Last active
December 6, 2017 10:15
-
-
Save jank84/79f9d433ebd171868027440b1630c98c to your computer and use it in GitHub Desktop.
idle clicker scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btn = document.createElement("BUTTON"); | |
btn.appendChild(document.createTextNode("Auto clip")); | |
btn.onclick = function(){ | |
count = 10000; clickclipInter = setInterval(()=>{document.getElementById("btnMakePaperclip").click();count--; if(count<0){clearInterval(clickclipInter)}}, 20); | |
countWire = 10000; clickWireInter = setInterval(()=>{document.getElementById("btnBuyWire").click();countWire --; if(countWire <0){clearInterval(clickWireInter)}}, 20); | |
countProc = 10000; clickProcInter = setInterval(()=>{document.getElementById("btnAddProc").click();countProc --; if(countProc <0){clearInterval(clickProcInter )}}, 20); | |
countMem = 10000; clickMemInter = setInterval(()=>{document.getElementById("btnAddMem").click();countMem --; if(countMem <0){clearInterval(clickMemInter )}}, 20); | |
}; | |
document.body.appendChild(btn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment