this script is for after countdown automatic click register button accepting the pop-up s in sand booking web site

0 votes
asked Apr 2, 2019 by srikanth 2 flags
(function() {
    'use strict';
    function clicker(){
        var timer = setInterval(function(){
            if($('#btnRegister').filter(":visible").length>0){
                clearInterval(timer);
                setTimeout(function(){
                    $('#btnRegister').click();
                },650);
            }
        },300);
    }
    jQuery.globalEval(
        CallRegister.toString()
        .replace(/\(flag\)[^0]+0[^}]+}/,'(flag)(ff=1;')
        .replace(/'MESS'[^;]+/,"'MESS'){"+clicker.toString()+"clicker()")
        .replace(/alert\('Error While Connecting'\)/,
                 clicker.toString()+"$('.modal').hide();clicker()")
    );
    jQuery.globalEval(
        'var timer = '+timer.toString()
        .replace('== 0) (',"== 0) {"+clicker.toString()+"clicker();")
    );
})();

//please check this script and fix errors

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...