Skip to content

Commit 9aadc8e

Browse files
authored
Merge pull request #209 from cachho/feat/ItaobuySupport
feat: itaobuy support
2 parents 49f7310 + f2e91bc commit 9aadc8e

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

manifest-v2.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"*://*.loongbuy.com/*",
5151
"*://*.kakobuy.com/*",
5252
"*://*.basetao.com/*",
53+
"*://*.itaobuy.com/*",
5354
"*://*.taobao.com/*",
5455
"*://*.weidian.com/*",
5556
"*://*.1688.com/*",
@@ -92,6 +93,7 @@
9293
"*://*.sifubuy.com/*",
9394
"*://*.loongbuy.com/*",
9495
"*://*.kakobuy.com/*",
96+
"*://*.itaobuy.com/*",
9597
"https://*.reparchive.com/*",
9698
"https://*.jadeship.com/*"
9799
],

manifest.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"*://*.sifubuy.com/*",
4545
"*://*.loongbuy.com/*",
4646
"*://*.kakobuy.com/*",
47+
"*://*.itaobuy.com/*",
4748
"*://*.taobao.com/*",
4849
"*://*.weidian.com/*",
4950
"*://*.1688.com/*",
@@ -87,6 +88,7 @@
8788
"*://*.sifubuy.com/*",
8889
"*://*.loongbuy.com/*",
8990
"*://*.kakobuy.com/*",
91+
"*://*.itaobuy.com/*",
9092
"*://*.taobao.com/*",
9193
"*://*.weidian.com/*",
9294
"*://*.1688.com/*",
@@ -127,7 +129,8 @@
127129
"*://*.panglobalbuy.com/*",
128130
"*://*.sifubuy.com/*",
129131
"*://*.loongbuy.com/*",
130-
"*://*.kakobuy.com/*"
132+
"*://*.kakobuy.com/*",
133+
"*://*.itaobuy.com/*"
131134
],
132135
"permissions": ["storage", "webNavigation", "scripting"]
133136
}

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.32.0",
12+
"cn-links": "^1.34.0",
1313
"html-webpack-plugin": "^5.5.0",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0",
552 Bytes
Loading

src/__tests__/validateRegisterPage.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('validateRegisterPage', () => {
3434
loongbuy: 'https://loongbuy.com/register',
3535
kakobuy: 'https://www.kakobuy.com/register',
3636
acbuy: 'https://acbuy.com/login?loginStatus=register',
37+
itaobuy: 'https://www.itaobuy.com/register',
3738
};
3839

3940
agents.forEach((agent) => {

src/data/redirectListenerUrls.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ export const redirectListenerUrls: Array<{ hostSuffix: string }> = [
2727
{ hostSuffix: 'sifubuy.com' },
2828
{ hostSuffix: 'loongbuy.com' },
2929
{ hostSuffix: 'kakobuy.com' },
30+
{ hostSuffix: 'itaobuy.com' },
3031
];

src/lib/getTargetHrefs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function getTargetHrefs(settings: Settings) {
8080
'sifubuy.com/detail',
8181
'loongbuy.com/product-details',
8282
'kakobuy.com/item',
83+
'itaobuy.com/product-detail',
8384
]);
8485
}
8586

0 commit comments

Comments
 (0)