Home>

There is a script that clicks on DIV with a specific class 1 time per day:

<
script >
    jQuery (Document) .ready (Function ($) {
        If (! $. Cookie ('Showchat')) {
            SetTimeout (Function () {
                var date= new date ();
                var minutes= 60 * 12;
                date.settime (date.gettime () + (minutes * 60 * 1000));
                $ .Cookie ('Showchat', "True", {expires: date});
                jQuery (". hoverl_ca29"). click ()
            }, 10 * 1000);
        }
    });
≪
/script >

Class ".hoverl_ca29 "

The problem is that "ca29 " is constantly changing to random.

Tell me how in the line "jQuery (". hoverl_ca29 "). click () " make a regular one so that the script does the script in no dependence on the random value in the class name?

Thank you in advance!

Give several examples of random values. At the target diva is the only class?

UModeL2021-04-28 21:43:17