forked from maxwellyue/autojs_script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path红包头条.js
35 lines (32 loc) · 819 Bytes
/
红包头条.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const commons = require('common.js');
const templates = require('template.js');
templates.init({
appName:"红包头条",
indexBtnText: "头条",
indexFlagText:"头条",
});
templates.run({
//签到
signIn:function(){
},
//找出新闻的条目
findNewsItem:function(){
var newsItem = id("ll_root").findOnce();;
//判断是否是广告
if(newsItem){
var adFlag = newsItem.child(1);
if(adFlag && adFlag.text() == "广告"){
newsItem = null;
}
}
return newsItem;
},
//阅读页面是否应该返回
isShouldBack:function(){
//不存在奖励,直接退出
if(!id("circularProgressBar").findOnce()){
return true;
}
return false;
}
});