Original Address 52575063
Seconds Kill activity Page
<!DOCTYPE HTML><HTML> <Head> <Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312"> <title>Micomo</title> </Head> <Body> <Div> <P>Event Countdown<StrongID= "Endtime"></Strong>seconds! </P> <inputtype= "button"ID= "BTN"value= "Buy Now"Disabled= "Disabled"OnClick= "func ()"/> </Div> <Scriptsrc= "/js/jquery-2.1.1.min.js"></Script> <Scripttype= "Text/javascript"> //Countdown 30 seconds varI= -; functionRemaintime () {if(i> 0) {document.getElementById ("Endtime"). InnerHTML=I--; SetTimeout ("remaintime ()", +); } if(i== 0) { $("P"). Text ("Event Start"); $("P"). CSS ("Background-color", "Yellow"); //countdown End, button state changed to availabledocument.getElementById ("btn"). Disabled= false; }} remaintime (); //Click the button to trigger the method functionfunc () {alert ("congratulations on grabbing a mooncake ."); } </Script> </Body></HTML>
Page Preview
Script JS
Code
<script type= "Text/javascript" > var button = document.getElementById ("btn"); // Execute once per second, click If the button status is available SetInterval (function() { iffalse) { button.click (); } } , +); </script>
The SetInterval () method invokes a function or evaluates an expression according to the specified period (in milliseconds).
The SetInterval () method keeps calling functions until Clearinterval () is called or the window is closed.
How to put it in a browser
Browser to open the active page, press F12 into the debug mode, find the console console, the above JS script tags inside the code to paste into (do not label), click Enter, must be in the event before the end of the put in.
Results Preview
Modify the Millisec (in milliseconds) in setinterval (function () {},millisec) to control the click Frequency.
This is just a simple JS code, does not implement verification code automatic verification.
can refer to the study, do not take to do unethical, for the benefit of the matter.
Personal blog, only used to make some notes, do not guarantee the correctness of the content, if found wrong, implore correction.
2016/11/10 Supplement
Baidu Browser points Redemption
Open the following page, press F12, put the code under console, enter.
Code snippet
//Select the <a> label for Data-id 6 varButton = $ ("a[data-id= ' 6 ')"); //Execute once per second, click if the button status is available varFUC = SetInterval (function() { //if a button to refresh the verification code appears, you have grabbed if($ (". Refresh-btn"). Length > 0) {window.clearinterval (FUC); //Desktop notifications, only Chrome,firefox browsers support the desktop APINotification.requestpermission (function(status) {varn =NewNotification (' notification message ', {body: ' Iqiyi member redemption code! ‘ }); }); } Else{Button.Click (); } },1000);//once a second click
JavaScript script Implementation Browser auto-click (Ali employees seconds to kill moon cakes)