diff --git a/rewrite/7mao.conf b/rewrite/7mao.conf index 92b9ae8..af43292 100644 --- a/rewrite/7mao.conf +++ b/rewrite/7mao.conf @@ -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 \ No newline at end of file +# 本章说 +^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 \ No newline at end of file diff --git a/rewrite/js/7mao.js b/rewrite/js/7mao.js index 2886be4..93c6d04 100644 --- a/rewrite/js/7mao.js +++ b/rewrite/js/7mao.js @@ -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) {