INNER CODE UNIT · JavaScript

_locateBtn

SuperMonster003/Ant-Forest · ant-forest-launcher.js:654

                                        function _locateBtn() {
                                            let _max = 8;
                                            while (_max--) {
                                                if (a11yx.wait(_sel_rl_ent, 1.5e3)) {
                                                    return true;
                                                }
                                                if ($$sel.get('alipay_home')) {
                                                    consolex._([ '检测到支付宝主页页面', '尝试进入蚂蚁森林主页' ]);
                                                    $$app.page.af.launch();
                                                } else if ($$sel.get('rankListTitle')) {
                                                    consolex._([ '检测到好友排行榜页面', '尝试关闭当前页面' ]);
                                                    $$app.page.back();
                                                } else {
                                                    consolex._([ '未知页面', '尝试关闭当前页面' ]);
                                                    devicex.keycode(4, { rush: true });
                                                }
                                            }
                                            if (_max >= 0) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…