Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
sdf committed Mar 30, 2024
1 parent 2843f51 commit 43b89f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion rewrite/7mao.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ hostname = *.wtzw.com, *.qm989.com, adim.pinduoduo.com, t-dsp.pinduoduo.com, ope

^https:\/\/api\-bc\.wtzw\.com\/api\/v1\/book\-shelf\/operation url reject-dict

^https:\/\/api\-cmnt\.wtzw\.com\/api\/v1\/comment\/chapter-end-comment url reject-dict
# 本章说
^https:\/\/api\-cmnt\.wtzw\.com\/api\/v1\/comment\/chapter-end-comment url reject-dict

# 开通会员, 无广告畅听
^https:\/\/api\-bc\.wtzw\.com\/api/v1\/operation url reject-dict
10 changes: 7 additions & 3 deletions rewrite/js/7mao.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ if (url.indexOf("/reader-copy-paragraph-all.json") != -1) {
obj.params.vip_status = 1;
}
} else if (url.indexOf("/init/other-data") != -1) {
if (obj?.data?.main_activities) {
if (obj?.data) {
obj.data.main_activities = null;
obj.data.default_paragraph_comment_switch = "0";
}
} else if (url.indexOf("/api/v2/init") != -1) {
if (obj?.data?.reward_video_fail_num) {
obj.data.reward_video_fail_num = "0";
if (obj?.data) {
obj.data.comment_switch = "0";
obj.data.chapter_comment_switch = "0";
obj.data.onekey_login_switch = "0";
obj.data.reward_video_fail_num = "-1";
}
} else if (url.indexOf("/vip/index") != -1) {
if (obj?.data?.activity) {
Expand Down

0 comments on commit 43b89f6

Please sign in to comment.