Skip to content

Commit 1dcd3f3

Browse files
authored
Merge pull request #214 from cachho/feat/CnshopperHipobuyUsfans
feat: cnshopper hipobuy usfans
2 parents 53e9ca7 + c845775 commit 1dcd3f3

File tree

11 files changed

+45
-9
lines changed

11 files changed

+45
-9
lines changed

manifest-v2.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
"*://*.kakobuy.com/*",
5252
"*://*.basetao.com/*",
5353
"*://*.itaobuy.com/*",
54+
"*://*.usfans.com/*",
55+
"*://*.cnshopper.com/*",
56+
"*://*.hipobuy.com/*",
5457
"*://*.taobao.com/*",
5558
"*://*.weidian.com/*",
5659
"*://*.1688.com/*",
@@ -94,6 +97,9 @@
9497
"*://*.loongbuy.com/*",
9598
"*://*.kakobuy.com/*",
9699
"*://*.itaobuy.com/*",
100+
"*://*.usfans.com/*",
101+
"*://*.cnshopper.com/*",
102+
"*://*.hipobuy.com/*",
97103
"https://*.reparchive.com/*",
98104
"https://*.jadeship.com/*"
99105
],

manifest.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
"*://*.loongbuy.com/*",
4646
"*://*.kakobuy.com/*",
4747
"*://*.itaobuy.com/*",
48+
"*://*.usfans.com/*",
49+
"*://*.cnshopper.com/*",
50+
"*://*.hipobuy.com/*",
4851
"*://*.taobao.com/*",
4952
"*://*.weidian.com/*",
5053
"*://*.1688.com/*",
@@ -89,6 +92,9 @@
8992
"*://*.loongbuy.com/*",
9093
"*://*.kakobuy.com/*",
9194
"*://*.itaobuy.com/*",
95+
"*://*.usfans.com/*",
96+
"*://*.cnshopper.com/*",
97+
"*://*.hipobuy.com/*",
9298
"*://*.taobao.com/*",
9399
"*://*.weidian.com/*",
94100
"*://*.1688.com/*",
@@ -130,7 +136,10 @@
130136
"*://*.sifubuy.com/*",
131137
"*://*.loongbuy.com/*",
132138
"*://*.kakobuy.com/*",
133-
"*://*.itaobuy.com/*"
139+
"*://*.itaobuy.com/*",
140+
"*://*.usfans.com/*",
141+
"*://*.cnshopper.com/*",
142+
"*://*.hipobuy.com/*"
134143
],
135144
"permissions": ["storage", "webNavigation", "scripting"]
136145
}

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@testing-library/jest-dom": "^5.16.5",
12-
"cn-links": "^1.39.0",
12+
"cn-links": "^1.43.0",
1313
"html-webpack-plugin": "^5.5.0",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0",
647 Bytes
Loading
402 Bytes
Loading

public/agent_logos/usfans_logo.png

1.24 KB
Loading

src/__tests__/validateRegisterPage.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ describe('validateRegisterPage', () => {
3535
kakobuy: 'https://www.kakobuy.com/register',
3636
acbuy: 'https://acbuy.com/login?loginStatus=register',
3737
itaobuy: 'https://www.itaobuy.com/register',
38+
usfans: 'https://usfans.com/register',
39+
cnshopper: 'https://cnshopper.com/login?type=register',
40+
hipobuy: 'https://hipobuy.com/register',
3841
};
3942

4043
agents.forEach((agent) => {

src/data/redirectListenerUrls.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ export const redirectListenerUrls: Array<{ hostSuffix: string }> = [
2828
{ hostSuffix: 'loongbuy.com' },
2929
{ hostSuffix: 'kakobuy.com' },
3030
{ hostSuffix: 'itaobuy.com' },
31+
{ hostSuffix: 'usfans.com' },
32+
{ hostSuffix: 'cnshopper.com' },
33+
{ hostSuffix: 'hipobuy.com' },
3134
];

src/lib/getTargetHrefs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export function getTargetHrefs(settings: Settings) {
8181
'loongbuy.com/product-details',
8282
'kakobuy.com/item',
8383
'itaobuy.com/product-detail',
84+
'usfans.com/product',
85+
'cnshopper.com/goods/detail',
86+
'hipobuy.com/product',
8487
]);
8588
}
8689

0 commit comments

Comments
 (0)