From 17986a574b93337c10778907dbf931971a741c7f Mon Sep 17 00:00:00 2001 From: liushiwei <499672082@qq.com> Date: Tue, 17 Oct 2023 14:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/rules_2.json | 19 ++++ src/manifest.development.json | 4 + src/manifest.production.json | 4 + .../keywordtrack/components/List.vue | 93 +++++++++---------- 4 files changed, 73 insertions(+), 47 deletions(-) create mode 100644 public/rules_2.json diff --git a/public/rules_2.json b/public/rules_2.json new file mode 100644 index 0000000..95edd2a --- /dev/null +++ b/public/rules_2.json @@ -0,0 +1,19 @@ +[ + { + "id": 12, + "priority": 1, + "action": { + "type": "modifyHeaders", + "requestHeaders": [ + { + "header": "Origin", + "operation": "set", + "value": "https://www.temu.com" + } + ] + }, + "condition": { + "urlFilter": "||www.temu.com" + } + } +] \ No newline at end of file diff --git a/src/manifest.development.json b/src/manifest.development.json index 2a94a45..6d3713d 100644 --- a/src/manifest.development.json +++ b/src/manifest.development.json @@ -35,6 +35,10 @@ "id": "1", "enabled": true, "path": "rules_1.json" + },{ + "id": "2", + "enabled": true, + "path": "rules_2.json" }] }, "content_scripts": [ diff --git a/src/manifest.production.json b/src/manifest.production.json index b7d7355..ffc47f3 100644 --- a/src/manifest.production.json +++ b/src/manifest.production.json @@ -35,6 +35,10 @@ "id": "1", "enabled": true, "path": "rules_1.json" + },{ + "id": "2", + "enabled": true, + "path": "rules_2.json" }] }, "content_scripts": [ diff --git a/src/view/selection/keywordtrack/components/List.vue b/src/view/selection/keywordtrack/components/List.vue index 93ffe15..3a06947 100644 --- a/src/view/selection/keywordtrack/components/List.vue +++ b/src/view/selection/keywordtrack/components/List.vue @@ -73,7 +73,8 @@