A very practical 12306 ticket flushing script

Source: Internet
Author: User
Preface: the National Day is about to go home, and the ticket is too late to be bought. When I open 12306, I sold all my tickets, so I thought about waiting for the system to return the ticket, as a result, the next script is generated, which opens the page for selecting a user when there is no ticket available. It is very simple but practical-the original art is really from life. Body start: var interval_id = Window. setinterval (function (){
Document. getelementbyid ('query _ ticket '). Click ();
VaR allorderbtn = Document. queryselectorall ('td [width = "80"] ');

For (VAR I = 0, length = allorderbtn. length; I <length; I ++ ){
If (allorderbtn [I]. firstchild & allorderbtn [I]. firstchild. nodetype = 1 ){
Window. clearinterval (interval_id );
Allorderbtn [I]. firstchild. Click ();
}
}
},2000 );

Usage:
  1. First, open the ticket query page.
  2. Open the browser console and copy the script to run it.


A very practical 12306 ticket flushing script

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.