360 Automatic ticket is not enough, a few lines JS code set unattended

Source: Internet
Author: User
Tags ticket

360 is the most awesome ...

But recently in the use of 360 browser to rob a ticket, but also found some bad experience, such as to get out of the login, sometimes can help you automatically log in, but automatically log in will not help you automatically start to rob. And then the verification code failed after several times

The process stopped, so it was necessary to be guarded.

Since 360 browser is using chrome kernel and provide debugging function, so we write a small section JS let 360 achieve unattended Rob ticket purpose

        SetInterval (function () {            if ($ ('. Username '). HTML ()! = undefined && $ ('. Username '). HTML ()! = ") {                if ($ ( ' #btn_refresh '). attr (' class ') = = ' Start ') {                    $ (' #btn_refresh '). Click ();                }            }            else {                if (!$ ('. Randcode-select '). Is (": visible")) {                    $ ('. Randcode-start '). Click ();                    SetTimeout (function () {                        if ($ ('. Error_tips_randcode '). html (). toString (). INDEXOF (' Automatic identification ') > 0 | | $ ('. Error_ Tips_randcode '). html (). toString (). IndexOf (' you ') {                            //Click the login button                            $ ('. Submit '). Click ();                        }                    }, 1800)                }                else {                    $ ('. Randcode-start '). Click ();}}        , 5000)

  

Open 360 Press F12 and the debugger will pop up and test it yourself.

360 Automatic ticket is not enough, a few lines JS code set unattended

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.