JS actual application to do the LOL led icon Task ~

Source: Internet
Author: User

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 ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.