Browse Source

chore: update deps

zu1k 2 years ago
parent
commit
0dc60e9e5f
9 changed files with 347 additions and 193 deletions
  1. 0 2
      .github/FUNDING.yml
  2. 2 2
      .github/ISSUE_TEMPLATE/bug_report.yaml
  3. 2 4
      .github/dependabot.yml
  4. 3 1
      .gitignore
  5. 235 177
      Cargo.lock
  6. 1 1
      Cargo.toml
  7. 3 5
      README.md
  8. 1 1
      docs/CNAME
  9. 100 0
      rules/yxbj.yaml

+ 0 - 2
.github/FUNDING.yml

@@ -1,2 +0,0 @@
-github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] ['zu1k']
-custom: ['https://zu1k.com/donate/']# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

+ 2 - 2
.github/ISSUE_TEMPLATE/bug_report.yaml

@@ -17,8 +17,8 @@ I have searched on the [issue tracker](……/) for a related issue.
 "
           required: true
         - label: "
-我已经仔细看过 [Documentation](https://docs.mitm.plus/) 并无法自行解决问题
-I have read the [documentation](https://docs.mitm.plus/) and was unable to solve the issue.
+我已经仔细看过 [Documentation](https://good-mitm.zu1k.com/) 并无法自行解决问题
+I have read the [documentation](https://good-mitm.zu1k.com/) and was unable to solve the issue.
 "
           required: true
   - type: input

+ 2 - 4
.github/dependabot.yml

@@ -3,7 +3,5 @@ updates:
 - package-ecosystem: cargo
   directory: "/"
   schedule:
-    interval: daily
-  open-pull-requests-limit: 1
-  reviewers:
-  - zu1k
+    interval: weekly
+  open-pull-requests-limit: 0

+ 3 - 1
.gitignore

@@ -2,4 +2,6 @@
 /bin
 /ca
 .vscode
-.idea
+.idea
+
+/crates/adblocker

File diff suppressed because it is too large
+ 235 - 177
Cargo.lock


+ 1 - 1
Cargo.toml

@@ -25,7 +25,7 @@ anyhow = "1.0"
 clap = { version = "4", features = ["derive"] }
 thiserror = "1"
 log = "0.4"
-env_logger = "0.9"
+env_logger = "0.10"
 serde = { version = "1.0", features = ["derive"] }
 serde_yaml = "0.9"
 hyper-proxy = { version = "0.9", default-features = false }

+ 3 - 5
README.md

@@ -6,13 +6,13 @@
 [![GitHub issues](https://img.shields.io/github/issues/zu1k/good-mitm)](https://github.com/zu1k/good-mitm/issues)
 [![Build](https://github.com/zu1k/good-mitm/actions/workflows/build-test.yml/badge.svg)](https://github.com/zu1k/good-mitm/actions/workflows/build-test.yml)
 [![GitHub license](https://img.shields.io/github/license/zu1k/good-mitm)](https://github.com/zu1k/good-mitm/blob/master/LICENSE)
-[![Docs](https://img.shields.io/badge/docs-read-blue.svg?style=flat)](https://docs.mitm.plus)
+[![Docs](https://img.shields.io/badge/docs-read-blue.svg?style=flat)](https://good-mitm.zu1k.com/)
 
 利用`MITM`技术实现请求和返回的`重写`、`重定向`、`阻断`等操作
 
 ## 使用方法
 
-这里仅介绍最基本的使用流程,具体使用方法和规则请查看[文档](https://docs.mitm.plus)
+这里仅介绍最基本的使用流程,具体使用方法和规则请查看[文档](https://good-mitm.zu1k.com/)
 
 ### 证书准备
 
@@ -44,6 +44,4 @@ good-mitm.exe run -r rules
 
 ## License
 
-**Good-MITM** © [zu1k](https://github.com/zu1k), Released under the [MIT](./LICENSE) License.<br>
-
-> Blog [zu1k.com](https://zu1k.com) · GitHub [@zu1k](https://github.com/zu1k) · Twitter [@zu1k_lv](https://twitter.com/zu1k_lv) · Telegram Channel [@peekfun](https://t.me/peekfun)
+**Good-MITM** © [zu1k](https://github.com/zu1k), Released under the [MIT](./LICENSE) License.

+ 1 - 1
docs/CNAME

@@ -1 +1 @@
-docs.mitm.plus
+good-mitm.zu1k.com

+ 100 - 0
rules/yxbj.yaml

@@ -0,0 +1,100 @@
+- name: "yxbj"
+  mitm: "config.app.yinxiang.com"
+  filters:
+    url-regex: 'https:\/\/config\.app\.yinxiang\.com\/configfiles\/json\/com\.yinxiang\.ios\/default\/YXFrontEnd\.mobile\.common'
+  actions:
+    js: |
+      function process() {
+        console.log("yxbj ====================================================");
+
+        if (data.request != undefined) {
+          let req = data.request;
+          return req;
+        }
+
+        console.log(data);
+        if (data.response != undefined) {
+          let res = data.response;
+          if (res.body != undefined) {
+            var body = JSON.parse(res.body);
+            console.log(body);
+
+            body['showAdsInPricingTier'] = "false";
+            body['is_pen_entrance_hidden'] = "true";
+            body['is_pen_purchase_button_hidden'] = "true";
+
+            body['pen_purchase_url'] = "";
+            body['pen_upgrade_enabled'] = "false";
+            body['space_beta_enabled'] = "true";
+
+            body['discovery_feed_visible'] = "false";
+            body['discovery_homepage_visible'] = "false";
+
+            body['personal_center_ad_info'] = "";
+            body['is_scan_pen_entrance_hidden'] = "true";
+            body['is_scan_pen_purchase_button_hidden'] = "true";
+            body['scan_pen_purchase_url'] = "";
+
+            body['home_promotion_for_eight_years'] = "{}";
+            body['home_scan_pen_cover_icon'] = "{}";
+            body['home_ever_pen_cover_icon'] = "{}";
+
+            body['ever_pen_guide_background'] = "{}";
+            body['ever_pen_guide_purchase_icon'] = "{}";
+            body['scan_pen_guide_purchase_icon'] = "{}";
+
+            body['everscan_android_purchase_url'] = "";
+            body['everpen_feedback_show'] = "false";
+            body['everhub_entrance_icon_show'] = "false";
+            body['everhub_entrance_icon_sourceurl'] = "{}";
+            body['everhub_pop_show'] = "false";
+            body['everhub_pop_sourceurl'] = "{}";
+            body['everhub_pop_count'] = "0";
+            body['home_recommended_banner_on_off_enable'] = "true";
+
+            body['is_everrec_entrance_hidden'] = "true";
+            body['everrec_upgrade_enabled'] = "false";
+            body['is_everrec_purchase_button_hidden'] = "true";
+
+            body['home_page_new_user_banner_freetrial_configuration'] = "{}";
+            body['home_everrec_pen_cover_icon'] = "{}";
+
+            body['everrec_pen_guide_purchase_icon'] = "{}";
+            body['personal_center_ad_info_plus_deeplink'] = "{}";
+            body['mine_wallet_promotion_enable'] = "false";
+            body['personal_center_ad_banner_list'] = "{}";
+            body['home_top_earphone_entrance'] = "{}";
+            body['home_top_course_entrance'] = "{}";
+            body['unpaid_order_entrance_enable'] = "false";
+
+            body['is_everbuds_entrance_hidden'] = "true";
+            body['is_everbuds_purchase_button_hidden'] = "true";
+            body['scan_pods_guide_purchase_icon'] = "{}";
+            body['home_everbuds_cover_icon'] = "{}";
+            body['is_everrec_pro_purchase_button_hidden'] = "true";
+            body['everrec_pen_pro_guide_purchase_icon'] = "";
+            body['everrec_pro_purchase_url'] = "";
+            body['is_everrec_pro_user_guide_button_hidden'] = "true";
+
+            body['show_evertime_feature_svip'] = "true";
+            body['show_evertime_feature_pro'] = "true";
+            body['show_verse_feature_svip'] = "true";
+            body['show_verse_feature_pro'] = "true";
+            body['ten_year_active'] = "false";
+            body['personal_center_ad_banner_newlist'] = "{\"banners\":[]}";
+
+            body['svip_show_scannable_feature'] = "true";
+            body['show_lightnote_feature'] = "true";
+            body['show_evermind_feature'] = "true";
+            body['show_kollector_feature'] = "true";
+            body['show_more_feature'] = "true";
+
+
+            body['realtime_transcription_duration'] = "9999";
+
+            res.body = JSON.stringify(body);
+          }
+          return res;
+        }
+      }
+      process()

Some files were not shown because too many files changed in this diff