Say a technology for the benefit of the human story, the thing is this, I am a loyal Hero league player, when browsing the official website to see such an activity (http://lol.qq.com/act/a20161020teemo/index.html), There's a quest to get the Doom soldier icon,
After the point is a small game, asked to stop the middle of the screen, and then there are soldiers jumped into the pit, and so on the right side of the circle to fill, you can collect the icon.
Manual point estimate Point 500, as a technology house, of course, can not use such a pit to complete the task, and then on the opportunistic write a piece of code, do not click the mouse, completed the task. Process and strategy:
//go to the Quests page and open the developer tool with Google Chrome//copy and paste the following code into the console and tap enter//finally enter Myclick (500,60). Wait for the completion. varEle = $ ("#MainClick");functionMyclick (num,speed) {varSid = SetInterval (function(){ if(num>0){ Try{num--; Ele.click (); }Catch(e) {Console.log (' Catch a error '); } }Else{clearinterval (SID); }},speed)}
Demonstrate
JS actual application to do the LOL led icon Task ~