|
@@ -3,7 +3,8 @@
|
|
|
81: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
__webpack_require__ = {
|
|
|
packageName: "com.ss.android.ugc.aweme",
|
|
|
- versions: [ "26.0.0", "27.0.0", "28.0.0", "28.1.0", "28.2.0", "28.3.0", "28.4.0", "28.5.0", "28.6.0", "28.7.0", "28.8.0", "28.9.0", "29.0.0" ],
|
|
|
+ versions: [ "26.0.0", "27.0.0", "28.0.0", "28.1.0", "28.2.0", "28.3.0", "28.4.0", "28.5.0", "28.6.0", "28.7.0", "28.8.0", "28.9.0", "29.0.0" ,"29.1.0"],
|
|
|
+
|
|
|
nodes: __webpack_require__(761),
|
|
|
commonts: [ "又刷到你了", "看看我的作品", "来我主页转转" ],
|
|
|
sxhs: [ "很高兴认识你", "常来常往" ],
|
|
@@ -95,8 +96,8 @@
|
|
|
gznum: {
|
|
|
id: "com.ss.android.ugc.aweme:id/yr5"
|
|
|
},
|
|
|
- fansnum: {
|
|
|
- id: "com.ss.android.ugc.aweme:id/yr9"
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/yr9"
|
|
|
},
|
|
|
username: {
|
|
|
id: "com.ss.android.ugc.aweme:id/ohq"
|
|
@@ -117,6 +118,307 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "27.3.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e3z"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/dms"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e3p"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v0f"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y=3"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y=7"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/oth"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y_7"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q1y"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nu1"
|
|
|
+ },
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z35"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "27.4.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e3="
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/dm2"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e30"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v0u"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y_h"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y_l"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/os-"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y-k"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q19"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nuw"
|
|
|
+ },
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z4t"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "27.5.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e3+"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/dnm"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e33"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v1f"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y-e"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y-i"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/osz"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y+h"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q2n"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nuh"
|
|
|
+ },
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z5o"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "27.6.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e5o"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/dow"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/e5e"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v2+"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/y+-"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zac"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/ouo"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/za+"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q4b"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nv8"
|
|
|
+ },
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z7s"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "27.7.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/exn"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/df+"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/exd"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v83"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zic"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zig"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/ov4"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zjf"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q6o"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nsz"
|
|
|
+ },
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/0cc"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "27.8.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/eyq"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/dg_"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/eyg"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v_e"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zku"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zky"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/oyz"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zlu"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q72"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/0ew"
|
|
|
+ },
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nwv"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "27.9.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/ezh"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/dhs"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/ey="
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/waf"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zn6"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zn="
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/o0p"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zo7"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q97"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/0h="
|
|
|
+ },
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nz9"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"28.0.0": {
|
|
|
video: {
|
|
|
like: {
|
|
@@ -199,7 +501,7 @@
|
|
|
id: "com.ss.android.ugc.aweme:id/0lw"
|
|
|
},
|
|
|
msglistbox: {
|
|
|
- id: "com.ss.android.ugc.aweme:id/n3u"
|
|
|
+ id: "com.ss.android.ugc.aweme:id/n3u"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -211,7 +513,7 @@
|
|
|
},
|
|
|
comment: {
|
|
|
button: {
|
|
|
- id: "com.ss.android.ugc.aweme:id/c1a"
|
|
|
+ id: "com.ss.android.ugc.aweme:id/c1a"
|
|
|
},
|
|
|
zan: {
|
|
|
id: "com.ss.android.ugc.aweme:id/efi"
|
|
@@ -305,7 +607,7 @@
|
|
|
},
|
|
|
user: {
|
|
|
homeMark: {
|
|
|
- id: "com.ss.android.ugc.aweme:id/v09"
|
|
|
+ id: "com.ss.android.ugc.aweme:id/v09"
|
|
|
},
|
|
|
gznum: {
|
|
|
id: "com.ss.android.ugc.aweme:id/zbf"
|
|
@@ -314,7 +616,7 @@
|
|
|
id: "com.ss.android.ugc.aweme:id/zbj"
|
|
|
},
|
|
|
username: {
|
|
|
- id: "com.ss.android.ugc.aweme:id/old"
|
|
|
+ id: "com.ss.android.ugc.aweme:id/old"
|
|
|
},
|
|
|
lanv: {
|
|
|
id: "com.ss.android.ugc.aweme:id/zcb"
|
|
@@ -407,7 +709,7 @@
|
|
|
},
|
|
|
followBtn: {
|
|
|
id: "com.ss.android.ugc.aweme:id/qz9"
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
live: {
|
|
|
userlistbox: {
|
|
@@ -418,7 +720,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "28.7.0": {
|
|
|
+ "28.7.0": {
|
|
|
video: {
|
|
|
like: {
|
|
|
id: "com.ss.android.ugc.aweme:id/ejz"
|
|
@@ -513,7 +815,7 @@
|
|
|
comment: {
|
|
|
button: {
|
|
|
id: "com.ss.android.ugc.aweme:id/c6w"
|
|
|
- },
|
|
|
+ },
|
|
|
zan: {
|
|
|
id: "com.ss.android.ugc.aweme:id/elr"
|
|
|
}
|
|
@@ -523,7 +825,7 @@
|
|
|
id: "com.ss.android.ugc.aweme:id/wej"
|
|
|
},
|
|
|
gznum: {
|
|
|
- id: "com.ss.android.ugc.aweme:id/zt8"
|
|
|
+ id: "com.ss.android.ugc.aweme:id/zt8"
|
|
|
},
|
|
|
fansnum: {
|
|
|
id: "com.ss.android.ugc.aweme:id/zt-"
|
|
@@ -542,7 +844,7 @@
|
|
|
userlistbox: {
|
|
|
id: "com.ss.android.ugc.aweme:id/0ol"
|
|
|
},
|
|
|
- msglistbox: {
|
|
|
+msglistbox: {
|
|
|
id: "com.ss.android.ugc.aweme:id/nrb"
|
|
|
}
|
|
|
}
|
|
@@ -589,7 +891,50 @@
|
|
|
id: "com.ss.android.ugc.aweme:id/nrq"
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ "29.1.0": {
|
|
|
+ video: {
|
|
|
+ like: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/emy"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ comment: {
|
|
|
+ button: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/c7i"
|
|
|
+ },
|
|
|
+ zan: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/eml"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ user: {
|
|
|
+ homeMark: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/poo"
|
|
|
+ },
|
|
|
+ gznum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z1u"
|
|
|
+ },
|
|
|
+ fansnum: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z1y"
|
|
|
+ },
|
|
|
+ username: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/o07"
|
|
|
+ },
|
|
|
+ lanv: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/z2q"
|
|
|
+ },
|
|
|
+ followBtn: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/q-z"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ live: {
|
|
|
+ userlistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/0wc"
|
|
|
+ },
|
|
|
+ msglistbox: {
|
|
|
+ id: "com.ss.android.ugc.aweme:id/nv_"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
module.exports = nodes;
|
|
|
},
|
|
@@ -599,15 +944,15 @@
|
|
|
nodes: {},
|
|
|
init() {
|
|
|
var info = utility.packageInfo(conf.packageName);
|
|
|
- return utility.isEmpty(info) ? (alert("请安装支持的抖音版本!"), !1) : conf.versions.includes(info.versionName) ? (this.version = info.versionName,
|
|
|
- this.nodes = conf.nodes[info.versionName] || {}, !0) : (alert("不支持 抖音(" + info.versionName + ")请安装支持的抖音版本!"),
|
|
|
+ return utility.isEmpty(info) ? (alert("请安装支持的抖音版本!"), !1) : conf.versions.includes(info.versionName) ? (this.version = info.versionName,
|
|
|
+ this.nodes = conf.nodes[info.versionName] || {}, !0) : (alert("不支持 抖音(" + info.versionName + ")请安装支持的抖音版本!"),
|
|
|
!1);
|
|
|
},
|
|
|
execClose() {
|
|
|
for (utility.inputHide(); ;) {
|
|
|
var closeBtn = desc("关闭").visibleToUser().findOnce();
|
|
|
if (!closeBtn) break;
|
|
|
- closeBtn.click(), sleep(1e3);
|
|
|
+ closeBtn.click(), sleep(1e3);
|
|
|
}
|
|
|
},
|
|
|
execCancel() {
|
|
@@ -626,31 +971,31 @@
|
|
|
},
|
|
|
execLike() {
|
|
|
var wdz = className("android.widget.LinearLayout").descStartsWith("未点赞").descEndsWith("按钮").visibleToUser().findOnce();
|
|
|
- return !!wdz && (utility.toast("执行点赞"), wdz.click(), sleep(1e3),
|
|
|
+ return !!wdz && (utility.toast("执行点赞"), wdz.click(), sleep(1e3),
|
|
|
!0);
|
|
|
},
|
|
|
execTxdz() {
|
|
|
var txdz;
|
|
|
- desc("用户头像").visibleToUser().findOnce().click() && (sleep(500),
|
|
|
- txdz = className("android.widget.RelativeLayout").visibleToUser().findOnce(),
|
|
|
- sleep(500), txdz.click(), engine.sleepMs(1e3, 2e3), back(),
|
|
|
+ desc("用户头像").visibleToUser().findOnce().click() && (sleep(500),
|
|
|
+ txdz = className("android.widget.RelativeLayout").visibleToUser().findOnce(),
|
|
|
+ sleep(500), txdz.click(), engine.sleepMs(1e3, 2e3), back(),
|
|
|
sleep(1e3));
|
|
|
},
|
|
|
popupAndClose() {
|
|
|
threads.start(function() {
|
|
|
for (;;) {
|
|
|
var a;
|
|
|
- sleep(200), text("授权提示").exists() && text("同意授权").click(),
|
|
|
- sleep(200), text("休息一下吧").exists() && text("取消").click(),
|
|
|
- sleep(200), (text("很晚了,睡个好觉").exists() || text("早点睡觉吧").exists()) && text("取消").click(),
|
|
|
- sleep(200), text("朋友推荐").exists() && (a = desc("关闭").findOnce()) && a.click(),
|
|
|
- sleep(200), text("发现通讯录好友").exists() && text("取消").click(),
|
|
|
- sleep(200), text("个人信息保护指引").exists() && text("好的").click(),
|
|
|
- sleep(200), text("去商店评分").exists() && text("取消").click(),
|
|
|
- sleep(200), text("开启青少年模式").exists() && text("我知道了").click(),
|
|
|
- sleep(200), text("检测到更新").exists() && text("以后再说").click(),
|
|
|
- sleep(200), text("跳过广告").exists() && text("跳过广告").click(),
|
|
|
- sleep(200), text("下次").exists() && text("下次").click(),
|
|
|
+ sleep(200), text("授权提示").exists() && text("同意授权").click(),
|
|
|
+ sleep(200), text("休息一下吧").exists() && text("取消").click(),
|
|
|
+ sleep(200), (text("很晚了,睡个好觉").exists() || text("早点睡觉吧").exists()) && text("取消").click(),
|
|
|
+ sleep(200), text("朋友推荐").exists() && (a = desc("关闭").findOnce()) && a.click(),
|
|
|
+ sleep(200), text("发现通讯录好友").exists() && text("取消").click(),
|
|
|
+ sleep(200), text("个人信息保护指引").exists() && text("好的").click(),
|
|
|
+ sleep(200), text("去商店评分").exists() && text("取消").click(),
|
|
|
+ sleep(200), text("开启青少年模式").exists() && text("我知道了").click(),
|
|
|
+ sleep(200), text("检测到更新").exists() && text("以后再说").click(),
|
|
|
+ sleep(200), text("跳过广告").exists() && text("跳过广告").click(),
|
|
|
+ sleep(200), text("下次").exists() && text("下次").click(),
|
|
|
sleep(1e3);
|
|
|
}
|
|
|
});
|
|
@@ -673,10 +1018,10 @@
|
|
|
return null !== node && null !== id(node.id).visibleToUser().findOnce() || null !== className("android.widget.LinearLayout").descContains("点赞").descEndsWith("按钮").visibleToUser().findOnce();
|
|
|
},
|
|
|
IsVideoDelay(ms) {
|
|
|
- return null !== className("android.widget.LinearLayout").descContains("点赞").descEndsWith("按钮").visibleToUser().findOne(ms);
|
|
|
+ return null !== className("android.widget.LinearLayout").descContains("点赞").descEndsWith("按钮").visibleToUser().findOne(ms);
|
|
|
},
|
|
|
skipVideo() {
|
|
|
- return !this.IsVideo() && (utility.toast("跳过非视频或图集作品!"), sleep(500),
|
|
|
+ return !this.IsVideo() && (utility.toast("跳过非视频或图集作品!"), sleep(500),
|
|
|
engine.slide(), !0);
|
|
|
},
|
|
|
IsFollow() {
|
|
@@ -687,21 +1032,21 @@
|
|
|
return !!con && (utility.toast("执行关注"), con.click(), !0);
|
|
|
},
|
|
|
sikpFollow() {
|
|
|
- return !this.IsFollow() && (utility.toast("跳过已关注用户"), sleep(500),
|
|
|
+ return !this.IsFollow() && (utility.toast("跳过已关注用户"), sleep(500),
|
|
|
engine.slide(), !0);
|
|
|
},
|
|
|
IsLike() {
|
|
|
return null !== className("android.widget.LinearLayout").descStartsWith("已点赞").descEndsWith("按钮").visibleToUser().findOnce();
|
|
|
},
|
|
|
sikpLike() {
|
|
|
- return !!this.IsLike() && (utility.toast("跳过已点赞视频"), sleep(500),
|
|
|
+ return !!this.IsLike() && (utility.toast("跳过已点赞视频"), sleep(500),
|
|
|
engine.slide(), !0);
|
|
|
},
|
|
|
getLikeNum() {
|
|
|
let num = 0;
|
|
|
try {
|
|
|
var desc = className("android.widget.LinearLayout").descContains("点赞").descEndsWith("按钮").visibleToUser().findOnce().desc();
|
|
|
- num = parseFloat(desc.match(/[0-9]+(\.[0-9]{0,2})?/g)[0]),
|
|
|
+ num = parseFloat(desc.match(/[0-9]+(\.[0-9]{0,2})?/g)[0]),
|
|
|
(0 <= desc.indexOf("w") || 0 <= desc.indexOf("万")) && (num *= 1e4);
|
|
|
} catch (e) {
|
|
|
num = 0;
|
|
@@ -711,8 +1056,8 @@
|
|
|
IsAd() {
|
|
|
return null !== textContains("广告").visibleToUser().findOnce();
|
|
|
},
|
|
|
- sikpAp() {
|
|
|
- return !!this.IsAd() && (utility.toast("跳过忽略广告"), sleep(500),
|
|
|
+ sikpAp() {
|
|
|
+ return !!this.IsAd() && (utility.toast("跳过忽略广告"), sleep(500),
|
|
|
engine.slide(), !0);
|
|
|
},
|
|
|
IsCommerce() {
|
|
@@ -723,13 +1068,13 @@
|
|
|
return !1;
|
|
|
},
|
|
|
sikpCommerce() {
|
|
|
- return !!this.IsCommerce() && (utility.toast("跳过商业视频!"), sleep(500),
|
|
|
+ return !!this.IsCommerce() && (utility.toast("跳过商业视频!"), sleep(500),
|
|
|
engine.slide(), !0);
|
|
|
},
|
|
|
watchVideo(startTime, watchTime) {
|
|
|
startTime = engine.getUnix() - startTime;
|
|
|
- 0 < (watchTime -= startTime = 60 < startTime ? 60 : startTime) ? (engine.sleep(watchTime),
|
|
|
- utility.toast("继续观看视频" + watchTime + "秒")) : utility.toast("已观看视频" + startTime + "秒"),
|
|
|
+ 0 < (watchTime -= startTime = 60 < startTime ? 60 : startTime) ? (engine.sleep(watchTime),
|
|
|
+ utility.toast("继续观看视频" + watchTime + "秒")) : utility.toast("已观看视频" + startTime + "秒"),
|
|
|
sleep(500);
|
|
|
},
|
|
|
canComment() {
|
|
@@ -746,36 +1091,36 @@
|
|
|
try {
|
|
|
isComment = !(!isComment && isComment !== undefined);
|
|
|
var plBtn = className("android.widget.LinearLayout").descStartsWith("评论").descEndsWith("按钮").visibleToUser().findOnce();
|
|
|
- if (plBtn && plBtn.click()) {
|
|
|
+ if (plBtn && plBtn.click()) {
|
|
|
let editText = className("android.widget.EditText").visibleToUser().findOne(3e3);
|
|
|
- if (null === editText && (sleep(1e3), editText = className("android.widget.EditText").visibleToUser().findOne(2e3)),
|
|
|
+ if (null === editText && (sleep(1e3), editText = className("android.widget.EditText").visibleToUser().findOne(2e3)),
|
|
|
null === editText) utility.toast("没有识别到评论框"), sleep(500); else {
|
|
|
- isLike && (utility.toast("执行评论点赞"), sleep(1e3),
|
|
|
+ isLike && (utility.toast("执行评论点赞"), sleep(1e3),
|
|
|
(commentZanBtns = descStartsWith("赞").descEndsWith("未选中").visibleToUser().find()).forEach(el => {
|
|
|
- (el.clickable() ? el : el.parent()).click(),
|
|
|
+ (el.clickable() ? el : el.parent()).click(),
|
|
|
engine.sleepMs(500, 1e3);
|
|
|
}));
|
|
|
var hsLen = hs.length;
|
|
|
- if (!isComment || hsLen < 1) utility.toast("不执行评论"),
|
|
|
+ if (!isComment || hsLen < 1) utility.toast("不执行评论"),
|
|
|
sleep(500); else if (utility.toast("准备发表评论"), editText.click()) {
|
|
|
- if (sleep(1e3), setText(hs[random(0, hsLen - 1)]),
|
|
|
+ if (sleep(1e3), setText(hs[random(0, hsLen - 1)]),
|
|
|
engine.sleepMs(1e3, 3e3), pltp && null !== desc("插入图片").visibleToUser().findOne(3e3)) {
|
|
|
- desc("插入图片").visibleToUser().findOne().click() || utility.toast("没有成功点击到发布图片按钮"),
|
|
|
+ desc("插入图片").visibleToUser().findOne().click() || utility.toast("没有成功点击到发布图片按钮"),
|
|
|
sleep(2e3);
|
|
|
let listBox = id("com.ss.android.ugc.aweme:id/content_container").visibleToUser().findOne(2e3);
|
|
|
if (0 == (listBox = listBox.find(id("com.ss.android.ugc.aweme:id/root_view"))).length) return void alert("没有图片!", "手机相册里请先准备好图片!");
|
|
|
- listBox[random(0, listBox.length - 1)].click() || (utility.toast("图片点击失败!"),
|
|
|
+ listBox[random(0, listBox.length - 1)].click() || (utility.toast("图片点击失败!"),
|
|
|
back()), engine.sleepMs(1e3, 2e3);
|
|
|
- }
|
|
|
+ }
|
|
|
let sendBtn = className("android.widget.ImageView").visibleToUser().desc("发送").findOne(5e3);
|
|
|
- if (null === (sendBtn = (sendBtn = sendBtn || className("android.widget.TextView").visibleToUser().text("发送").findOne(5e3)) || text("发送").findOne(5e3))) utility.toast("没有获取到发送按钮"),
|
|
|
+ if (null === (sendBtn = (sendBtn = sendBtn || className("android.widget.TextView").visibleToUser().text("发送").findOne(5e3)) || text("发送").findOne(5e3))) utility.toast("没有获取到发送按钮"),
|
|
|
sleep(1e3); else {
|
|
|
if (sendBtn.clickable()) {
|
|
|
- if (!sendBtn.click()) return utility.toast("没有成功点击发送按钮"),
|
|
|
+ if (!sendBtn.click()) return utility.toast("没有成功点击发送按钮"),
|
|
|
sleep(1e3), void this.execClose();
|
|
|
- } else if (!sendBtn.parent().click()) return utility.toast("没有成功点击parent发送按钮"),
|
|
|
+ } else if (!sendBtn.parent().click()) return utility.toast("没有成功点击parent发送按钮"),
|
|
|
sleep(1e3), void this.execClose();
|
|
|
- utility.toast("评论完成"), null !== text("我也发一张").visibleToUser().findOne(5e3) && this.execBack(),
|
|
|
+ utility.toast("评论完成"), null !== text("我也发一张").visibleToUser().findOne(5e3) && this.execBack(),
|
|
|
engine.sleepMs(2e3, 5e3);
|
|
|
}
|
|
|
} else utility.toast("没有成功点击评论框"), sleep(500);
|
|
@@ -791,17 +1136,17 @@
|
|
|
},
|
|
|
previewHome() {
|
|
|
var head = id(this.getNode("index.headimg").id).visibleToUser().findOnce();
|
|
|
- null !== head && head.click() && (utility.toast("访问用户首页"), this.isHome() ? (engine.sleep(2, 5),
|
|
|
- 1 == random(1, 3) && (engine.slide(), engine.sleep(2, 5))) : console.log("打开用户首页失败"),
|
|
|
+ null !== head && head.click() && (utility.toast("访问用户首页"), this.isHome() ? (engine.sleep(2, 5),
|
|
|
+ 1 == random(1, 3) && (engine.slide(), engine.sleep(2, 5))) : console.log("打开用户首页失败"),
|
|
|
this.execBackOnce());
|
|
|
},
|
|
|
previewHomeTc() {
|
|
|
let yhxb = 0;
|
|
|
var head = id(this.getNode("index.headimg").id).visibleToUser().findOnce();
|
|
|
if (null !== head && head.click()) {
|
|
|
- if (utility.toast("访问用户首页"), this.isHome()) return engine.sleepMs(2e3, 3e3),
|
|
|
- null !== descStartsWith("男").visibleToUser().findOnce() && (yhxb = 1),
|
|
|
- null !== descStartsWith("女").visibleToUser().findOnce() && (yhxb = 2),
|
|
|
+ if (utility.toast("访问用户首页"), this.isHome()) return engine.sleepMs(2e3, 3e3),
|
|
|
+ null !== descStartsWith("男").visibleToUser().findOnce() && (yhxb = 1),
|
|
|
+ null !== descStartsWith("女").visibleToUser().findOnce() && (yhxb = 2),
|
|
|
this.execBackOnce(), yhxb;
|
|
|
console.log("打开用户首页失败"), this.execBackOnce();
|
|
|
}
|
|
@@ -821,7 +1166,7 @@
|
|
|
module.exports = douyin;
|
|
|
},
|
|
|
557: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
- "undefined" == typeof __webpack_require__.g.ENV_CONF && (__webpack_require__.g.ENV_CONF = {}),
|
|
|
+ "undefined" == typeof __webpack_require__.g.ENV_CONF && (__webpack_require__.g.ENV_CONF = {}),
|
|
|
module.exports = {
|
|
|
deviceWidth: ENV_CONF.screenWidth || device.width,
|
|
|
deviceHeight: ENV_CONF.screenHeight || device.height,
|
|
@@ -829,7 +1174,7 @@
|
|
|
engines.stopAll(), exit();
|
|
|
},
|
|
|
swipeEx(qx, qy, zx, zy, time) {
|
|
|
- for (var xxy = [ time ], point = [], dx0 = {
|
|
|
+ for (var xxy = [ time ], point = [], dx0 = {
|
|
|
x: qx,
|
|
|
y: qy
|
|
|
}, dx1 = {
|
|
@@ -842,18 +1187,18 @@
|
|
|
x: zx,
|
|
|
y: zy
|
|
|
}, i = 0; i < 4; i++) eval("point.push(dx" + i + ")");
|
|
|
- for (let i = 0; i < 1; i += .08) xxyy = [ parseInt(this.bezier_curves(point, i).x), parseInt(this.bezier_curves(point, i).y) ],
|
|
|
+ for (let i = 0; i < 1; i += .08) xxyy = [ parseInt(this.bezier_curves(point, i).x), parseInt(this.bezier_curves(point, i).y) ],
|
|
|
xxy.push(xxyy);
|
|
|
gesture.apply(null, xxy);
|
|
|
},
|
|
|
bezier_curves(cp, t) {
|
|
|
- return cx = 3 * (cp[1].x - cp[0].x), bx = 3 * (cp[2].x - cp[1].x) - cx,
|
|
|
- ax = cp[3].x - cp[0].x - cx - bx, cy = 3 * (cp[1].y - cp[0].y),
|
|
|
- by = 3 * (cp[2].y - cp[1].y) - cy, ay = cp[3].y - cp[0].y - cy - by,
|
|
|
+ return cx = 3 * (cp[1].x - cp[0].x), bx = 3 * (cp[2].x - cp[1].x) - cx,
|
|
|
+ ax = cp[3].x - cp[0].x - cx - bx, cy = 3 * (cp[1].y - cp[0].y),
|
|
|
+ by = 3 * (cp[2].y - cp[1].y) - cy, ay = cp[3].y - cp[0].y - cy - by,
|
|
|
tSquared = t * t, tCubed = tSquared * t, (result = {
|
|
|
x: 0,
|
|
|
y: 0
|
|
|
- }).x = ax * tCubed + bx * tSquared + cx * t + cp[0].x, result.y = ay * tCubed + by * tSquared + cy * t + cp[0].y,
|
|
|
+ }).x = ax * tCubed + bx * tSquared + cx * t + cp[0].x, result.y = ay * tCubed + by * tSquared + cy * t + cp[0].y,
|
|
|
result;
|
|
|
},
|
|
|
shortSlide() {
|
|
@@ -863,7 +1208,7 @@
|
|
|
this.swipeEx(.5 * this.deviceWidth, .8 * this.deviceHeight, .5 * this.deviceWidth, .5 * this.deviceHeight, 300);
|
|
|
},
|
|
|
deSlide() {
|
|
|
- this.swipeEx(.5 * this.deviceWidth, .3 * this.deviceHeight, .5 * this.deviceWidth, this.deviceHeight, 300);
|
|
|
+ this.swipeEx(.5 * this.deviceWidth, .3 * this.deviceHeight, .5 * this.deviceWidth, this.deviceHeight, 300);
|
|
|
},
|
|
|
bshortSlide() {
|
|
|
this.swipeEx(.5 * this.deviceWidth, .8 * this.deviceHeight, .5 * this.deviceWidth, .8 * this.deviceHeight - 500, 300);
|
|
@@ -879,7 +1224,7 @@
|
|
|
},
|
|
|
boundsClick(bounds) {
|
|
|
var x = .2 * bounds.width(), y = .2 * bounds.height();
|
|
|
- bounds.left += x, bounds.right -= x, bounds.top += y, bounds.bottom -= y,
|
|
|
+ bounds.left += x, bounds.right -= x, bounds.top += y, bounds.bottom -= y,
|
|
|
click(random(bounds.left, bounds.right), random(bounds.top, bounds.bottom));
|
|
|
},
|
|
|
sleepMs() {
|
|
@@ -905,21 +1250,21 @@
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
- 871: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
+ 871: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
|
__webpack_require__.g.floatyToastWindow === undefined && (__webpack_require__.g.floatyToastWindow = floaty.rawWindow(`
|
|
|
<frame gravity="center" w="*">
|
|
|
- <text
|
|
|
- id="text" text=""
|
|
|
+ <text
|
|
|
+ id="text" text=""
|
|
|
w="wrap_content" h="wrap_content"
|
|
|
- visibility="invisible"
|
|
|
- bg="#1989fa" textColor="#ffffff"
|
|
|
+ visibility="invisible"
|
|
|
+ bg="#1989fa" textColor="#ffffff"
|
|
|
paddingLeft="10" paddingRight="10" paddingTop="5" paddingBottom="5"
|
|
|
/>
|
|
|
</frame>
|
|
|
-`), floatyToastWindow.setTouchable(!1), floatyToastWindow.setSize(-1, -2), floatyToastWindow.setPosition(0, .75 * (ENV_CONF.screenHeight || device.height))),
|
|
|
+`), floatyToastWindow.setTouchable(!1), floatyToastWindow.setSize(-1, -2), floatyToastWindow.setPosition(0, .75 * (ENV_CONF.screenHeight || device.height))),
|
|
|
module.exports = {
|
|
|
currentRunPackage(packageName) {
|
|
|
- return currentPackage() == conf.packageName || (app.launch(conf.packageName),
|
|
|
+ return currentPackage() == conf.packageName || (app.launch(conf.packageName),
|
|
|
!1);
|
|
|
},
|
|
|
packageInfo(packageName) {
|
|
@@ -931,8 +1276,8 @@
|
|
|
},
|
|
|
checkVersion(packageName, versions) {
|
|
|
var info = this.packageInfo(packageName);
|
|
|
- return this.isEmpty(info) ? (alert("请安装抖音!"), !1) : (packageName = app.getAppName(packageName),
|
|
|
- !!versions.includes(info.versionName) || (alert("不支持 " + packageName + "(" + info.versionName + "),请安装支持版本!"),
|
|
|
+ return this.isEmpty(info) ? (alert("请安装抖音!"), !1) : (packageName = app.getAppName(packageName),
|
|
|
+ !!versions.includes(info.versionName) || (alert("不支持 " + packageName + "(" + info.versionName + "),请安装支持版本!"),
|
|
|
!1));
|
|
|
},
|
|
|
isEmpty(value) {
|
|
@@ -941,7 +1286,7 @@
|
|
|
return !0;
|
|
|
|
|
|
case "string":
|
|
|
- if (0 == value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, "").length) return !0;
|
|
|
+ if (0 == value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, "").length) return !0;
|
|
|
break;
|
|
|
|
|
|
case "boolean":
|
|
@@ -960,7 +1305,7 @@
|
|
|
},
|
|
|
checkProbability(value, hdfs) {
|
|
|
var temp = random(1, 99);
|
|
|
- return console.log(hdfs + "计算概率:" + temp + (temp < value ? "未超出" : "超出") + value),
|
|
|
+ return console.log(hdfs + "计算概率:" + temp + (temp < value ? "未超出" : "超出") + value),
|
|
|
temp < value;
|
|
|
},
|
|
|
strFindKeys(s, keys) {
|
|
@@ -971,7 +1316,7 @@
|
|
|
if (e.fileName) {
|
|
|
packageName = this.packageInfo(packageName);
|
|
|
let versionName = "未知版本";
|
|
|
- packageName = "版本号:" + (versionName = packageName && packageName.versionName ? packageName.versionName : versionName) + "\r\n",
|
|
|
+ packageName = "版本号:" + (versionName = packageName && packageName.versionName ? packageName.versionName : versionName) + "\r\n",
|
|
|
packageName = (packageName = (packageName += "错误:" + e.toString() + "\r\n") + ("模块:" + e.fileName.replace(".js", "") + "\r\n")) + ("错误码:" + e.lineNumber + "\r\n") + "====================================\r\n";
|
|
|
files.write("/sdcard/error_bzy.log", packageName);
|
|
|
} else console.log("运行错误:", e.toString());
|
|
@@ -985,7 +1330,7 @@
|
|
|
},
|
|
|
toast(msg) {
|
|
|
ui.run(function() {
|
|
|
- console.log(msg), floatyToastWindow.text.setText(msg), floatyToastWindow.text.attr("visibility", "visible");
|
|
|
+ console.log(msg), floatyToastWindow.text.setText(msg), floatyToastWindow.text.attr("visibility", "visible");
|
|
|
});
|
|
|
},
|
|
|
toastHide() {
|
|
@@ -1021,7 +1366,7 @@
|
|
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
|
return cachedModule !== undefined || (cachedModule = __webpack_module_cache__[moduleId] = {
|
|
|
exports: {}
|
|
|
- }, __webpack_modules__[moduleId](cachedModule, cachedModule.exports, __webpack_require__)),
|
|
|
+ }, __webpack_modules__[moduleId](cachedModule, cachedModule.exports, __webpack_require__)),
|
|
|
cachedModule.exports;
|
|
|
}
|
|
|
(() => {
|
|
@@ -1054,9 +1399,9 @@
|
|
|
}, znzf = {
|
|
|
banben: parseFloat(context.getPackageManager().getPackageInfo("com.ss.android.ugc.aweme", 0).versionName) < 27.4,
|
|
|
init() {
|
|
|
- return !(!douyin.init() || ("undefined" != typeof ENV_CONF && Object.assign(param, ENV_CONF),
|
|
|
- 0 < param.pl && param.plhs.length < 1 ? (alert("请设置评论话术"), 1) : douyin.isRecommend() ? (utility.toast("开始任务:智能涨粉"),
|
|
|
- engine.sleep(1), device.keepScreenDim(), douyin.popupAndClose(),
|
|
|
+ return !(!douyin.init() || ("undefined" != typeof ENV_CONF && Object.assign(param, ENV_CONF),
|
|
|
+ 0 < param.pl && param.plhs.length < 1 ? (alert("请设置评论话术"), 1) : douyin.isRecommend() ? (utility.toast("开始任务:智能涨粉"),
|
|
|
+ engine.sleep(1), device.keepScreenDim(), douyin.popupAndClose(),
|
|
|
0) : (alert("请在抖音首页运行"), 1)));
|
|
|
},
|
|
|
isUserList() {
|
|
@@ -1070,58 +1415,58 @@
|
|
|
}
|
|
|
},
|
|
|
execUser() {
|
|
|
- if (engine.sleep(param.czjg1, param.czjg2), !douyin.isHome()) return utility.toast("进入主页失败"),
|
|
|
- !1;
|
|
|
- if (null !== text("私密账号").visibleToUser().findOnce() || null !== text("帐号已被封禁").visibleToUser().findOnce()) return utility.toast("私密或已封禁账号,跳过"),
|
|
|
+ if (engine.sleep(param.czjg1, param.czjg2), !douyin.isHome()) return utility.toast("进入主页失败"),
|
|
|
+ !1;
|
|
|
+ if (null !== text("私密账号").visibleToUser().findOnce() || null !== text("帐号已被封禁").visibleToUser().findOnce()) return utility.toast("私密或已封禁账号,跳过"),
|
|
|
!1;
|
|
|
- if (param.tglv && null !== className("android.widget.TextView").visibleToUser().id(douyin.getNode("user.lanv").id).findOnce()) return utility.toast("蓝v用户,跳过!"),
|
|
|
+ if (param.tglv && null !== className("android.widget.TextView").visibleToUser().id(douyin.getNode("user.lanv").id).findOnce()) return utility.toast("蓝v用户,跳过!"),
|
|
|
!1;
|
|
|
let fansNum = 0;
|
|
|
var fansNode = id(douyin.getNode("user.fansnum").id).visibleToUser().findOnce();
|
|
|
- fansNode && (fansText = fansNode.text(), fansNum = parseFloat(fansText),
|
|
|
+ fansNode && (fansText = fansNode.text(), fansNum = parseFloat(fansText),
|
|
|
0 <= fansText.indexOf("w") || 0 <= fansText.indexOf("万")) && (fansNum *= 1e4);
|
|
|
let gzNum = 0;
|
|
|
fansNode = id(douyin.getNode("user.gznum").id).visibleToUser().findOnce();
|
|
|
- if (fansNode && (gzText = fansNode.text(), gzNum = parseFloat(gzText),
|
|
|
- 0 <= gzText.indexOf("w") || 0 <= gzText.indexOf("万")) && (gzNum *= 1e4),
|
|
|
+ if (fansNode && (gzText = fansNode.text(), gzNum = parseFloat(gzText),
|
|
|
+ 0 <= gzText.indexOf("w") || 0 <= gzText.indexOf("万")) && (gzNum *= 1e4),
|
|
|
gzNum - fansNum < 1e3) return !1;
|
|
|
fansNode = textContains("作品").visibleToUser().findOnce();
|
|
|
let videoNum = 0;
|
|
|
- if ((videoNum = fansNode ? parseInt(fansNode.text().replace(/[^0-9]/gi, "")) : videoNum) < 1 || isNaN(videoNum)) return utility.toast("该用户没有作品或非正常用户,跳过"),
|
|
|
+ if ((videoNum = fansNode ? parseInt(fansNode.text().replace(/[^0-9]/gi, "")) : videoNum) < 1 || isNaN(videoNum)) return utility.toast("该用户没有作品或非正常用户,跳过"),
|
|
|
!1;
|
|
|
- this.banben && utility.checkProbability(param.txdz, "头像点赞") && (douyin.execTxdz(),
|
|
|
- engine.sleepMs(1e3, 2e3)), utility.checkProbability(param.gz, "关注") && ((followBtn = id(douyin.getNode("user.followBtn").id).visibleToUser().findOnce()) ? (utility.toast("执行关注!"),
|
|
|
- followBtn.click(), engine.sleepMs(500, 1e3), gzCount++, (followBtn = desc("更多,已展开").visibleToUser().findOne(5e3)) && (followBtn.click(),
|
|
|
+ this.banben && utility.checkProbability(param.txdz, "头像点赞") && (douyin.execTxdz(),
|
|
|
+ engine.sleepMs(1e3, 2e3)), utility.checkProbability(param.gz, "关注") && ((followBtn = id(douyin.getNode("user.followBtn").id).visibleToUser().findOnce()) ? (utility.toast("执行关注!"),
|
|
|
+ followBtn.click(), engine.sleepMs(500, 1e3), gzCount++, (followBtn = desc("更多,已展开").visibleToUser().findOne(5e3)) && (followBtn.click(),
|
|
|
engine.sleepMs(500, 1e3))) : utility.toast("不关注!"));
|
|
|
var followBtn = utility.checkProbability(param.dz, "点赞"), isPl = utility.checkProbability(param.pl, "评论");
|
|
|
if (followBtn || isPl) {
|
|
|
- fansNode.selected() || (engine.boundsClick(fansNode.bounds()),
|
|
|
+ fansNode.selected() || (engine.boundsClick(fansNode.bounds()),
|
|
|
engine.sleepMs(1e3, 2e3)), engine.shortSlide();
|
|
|
var fansNode = id("com.ss.android.ugc.aweme:id/container").visibleToUser().find();
|
|
|
if (!fansNode.empty()) {
|
|
|
let video = fansNode[random(0, fansNode.length - 1)];
|
|
|
- video = video.findOne(className("android.view.View")), sleep(1e3),
|
|
|
- video && video.clickable() && video.click() && douyin.IsVideoDelay(5e3) ? (fansNode = random(param.gksj1, param.gksj2),
|
|
|
- utility.toast("观看视频:" + fansNode + " 秒"), engine.sleep(fansNode),
|
|
|
- followBtn ? (douyin.execLike(), dzCount++) : utility.toast("不点赞"),
|
|
|
- isPl && douyin.canComment() ? (fansNode = utility.checkProbability(param.pldz, "评论点赞"),
|
|
|
- douyin.sendComment(param.plhs, isPl, fansNode, param.pltp),
|
|
|
- plCount++) : utility.toast("不评论")) : (utility.toast("打开视频失败!"),
|
|
|
+ video = video.findOne(className("android.view.View")), sleep(1e3),
|
|
|
+ video && video.clickable() && video.click() && douyin.IsVideoDelay(5e3) ? (fansNode = random(param.gksj1, param.gksj2),
|
|
|
+ utility.toast("观看视频:" + fansNode + " 秒"), engine.sleep(fansNode),
|
|
|
+ followBtn ? (douyin.execLike(), dzCount++) : utility.toast("不点赞"),
|
|
|
+ isPl && douyin.canComment() ? (fansNode = utility.checkProbability(param.pldz, "评论点赞"),
|
|
|
+ douyin.sendComment(param.plhs, isPl, fansNode, param.pltp),
|
|
|
+ plCount++) : utility.toast("不评论")) : (utility.toast("打开视频失败!"),
|
|
|
back(), sleep(1e3));
|
|
|
}
|
|
|
}
|
|
|
return !0;
|
|
|
},
|
|
|
dbzhgjc(gjc) {
|
|
|
- engine.sleepMs(1e3, 2e3), id("com.ss.android.ugc.aweme:id/et_search_kw").visibleToUser().findOne().setText(gjc),
|
|
|
+ engine.sleepMs(1e3, 2e3), id("com.ss.android.ugc.aweme:id/et_search_kw").visibleToUser().findOne().setText(gjc),
|
|
|
engine.sleepMs(1e3, 2e3);
|
|
|
- var b1 = text("搜索").visibleToUser().findOne().bounds(), b1 = (engine.boundsClick(b1),
|
|
|
- engine.sleepMs(3e3, 4e3), text("用户").visibleToUser().findOne().bounds()), b1 = (engine.boundsClick(b1),
|
|
|
+ var b1 = text("搜索").visibleToUser().findOne().bounds(), b1 = (engine.boundsClick(b1),
|
|
|
+ engine.sleepMs(3e3, 4e3), text("用户").visibleToUser().findOne().bounds()), b1 = (engine.boundsClick(b1),
|
|
|
engine.sleepMs(3e3, 4e3), descContains(gjc).visibleToUser().findOne(5e3));
|
|
|
- return null === b1 ? (alert("没有找到对标账号", "请检查对标账号 " + gjc + " 是否输入正确!"),
|
|
|
- !1) : (engine.boundsClick(b1.bounds()), engine.sleepMs(3e3, 4e3),
|
|
|
- text("粉丝").visibleToUser().findOne().parent().click(), engine.sleepMs(3e3, 4e3),
|
|
|
- !!id("com.ss.android.ugc.aweme:id/root_layout").exists() || (alert("打开粉丝列表失败", "对标账号 " + gjc + " 粉丝列表可能设置隐私了!"),
|
|
|
+ return null === b1 ? (alert("没有找到对标账号", "请检查对标账号 " + gjc + " 是否输入正确!"),
|
|
|
+ !1) : (engine.boundsClick(b1.bounds()), engine.sleepMs(3e3, 4e3),
|
|
|
+ text("粉丝").visibleToUser().findOne().parent().click(), engine.sleepMs(3e3, 4e3),
|
|
|
+ !!id("com.ss.android.ugc.aweme:id/root_layout").exists() || (alert("打开粉丝列表失败", "对标账号 " + gjc + " 粉丝列表可能设置隐私了!"),
|
|
|
!1));
|
|
|
},
|
|
|
run() {
|
|
@@ -1130,16 +1475,16 @@
|
|
|
var userContents = [];
|
|
|
let gjcsCount = 0, dyc = !0;
|
|
|
for (;;) {
|
|
|
- if (dyc && (descStartsWith("搜索").descEndsWith("按钮").visibleToUser().findOne().parent().click(),
|
|
|
+ if (dyc && (descStartsWith("搜索").descEndsWith("按钮").visibleToUser().findOne().parent().click(),
|
|
|
dyc = !1, !this.dbzhgjc(param.gjcs[gjcsCount]))) break;
|
|
|
- if (runCount >= param.yxgs) return device.cancelKeepingAwake(),
|
|
|
+ if (runCount >= param.yxgs) return device.cancelKeepingAwake(),
|
|
|
void alert("恭喜任务完成!", "本次任务共完成\n点赞" + dzCount + "次\n关注" + gzCount + "次\n评论" + plCount + "次");
|
|
|
let listBox = className("androidx.recyclerview.widget.RecyclerView").visibleToUser().findOne();
|
|
|
if (!listBox) return void utility.toast("没有找到用户列表!");
|
|
|
var listBoxTop = listBox.bounds().top, childCount = listBox.childCount();
|
|
|
for (let i = 0; i < childCount - 1; i++) {
|
|
|
- if (runCount >= param.yxgs) return device.cancelKeepingAwake(),
|
|
|
- void alert("恭喜任务完成!", "本次任务共完成\n点赞" + dzCount + "次\n关注" + gzCount + "次\n评论" + plCount + "次");
|
|
|
+ if (runCount >= param.yxgs) return device.cancelKeepingAwake(),
|
|
|
+ void alert("恭喜任务完成!", "本次任务共完成\n点赞" + dzCount + "次\n关注" + gzCount + "次\n评论" + plCount + "次");
|
|
|
utility.toast("已执行用户 " + runCount + " 条,任务数" + param.yxgs);
|
|
|
var child = listBox.child(i);
|
|
|
if (null != child && !(listBoxTop >= child.bounds().top || child.findOne(desc("已关注")))) {
|
|
@@ -1147,14 +1492,14 @@
|
|
|
if (userNode) {
|
|
|
userNode = userNode.text();
|
|
|
if (!utility.isEmpty(userNode) && !userContents.includes(userNode)) {
|
|
|
- console.log(userNode), 20 <= userContents.length && userContents.shift(),
|
|
|
+ console.log(userNode), 20 <= userContents.length && userContents.shift(),
|
|
|
userContents.push(userNode);
|
|
|
try {
|
|
|
child.click(), this.execUser() && runCount++;
|
|
|
} catch (error) {
|
|
|
console.log("用户操作失败:", error);
|
|
|
}
|
|
|
- if (utility.toast("返回用户列表"), this.toUserList(),
|
|
|
+ if (utility.toast("返回用户列表"), this.toUserList(),
|
|
|
engine.sleepMs(2e3, 3e3), !(listBox = className("androidx.recyclerview.widget.RecyclerView").visibleToUser().findOne())) return void utility.toast("没有找到用户列表!");
|
|
|
}
|
|
|
} else console.log("没有获取到用户信息");
|
|
@@ -1165,8 +1510,8 @@
|
|
|
alert("对标账号已全部运行完!", "本次任务共完成\n点赞" + dzCount + "次\n关注" + gzCount + "次\n评论" + plCount + "次");
|
|
|
break;
|
|
|
}
|
|
|
- if (engine.sleepMs(3e3, 4e3), back(), engine.sleepMs(3e3, 4e3),
|
|
|
- back(), engine.sleepMs(3e3, 4e3), !this.dbzhgjc(param.gjcs[gjcsCount])) break;
|
|
|
+ if (engine.sleepMs(3e3, 4e3), back(), engine.sleepMs(3e3, 4e3),
|
|
|
+ back(), engine.sleepMs(3e3, 4e3), !this.dbzhgjc(param.gjcs[gjcsCount])) break;
|
|
|
}
|
|
|
engine.sleepMs(2500, 3500);
|
|
|
}
|
|
@@ -1181,4 +1526,4 @@
|
|
|
engine.exit();
|
|
|
}
|
|
|
})();
|
|
|
-})()
|
|
|
+})();
|