Skip to content

Commit 3c48c1d

Browse files
committed
feat(remove-redirect): 51CTO 博客文章页支持直接跳转
1 parent bf00c61 commit 3c48c1d

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.changeset/lovely-wolves-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'remove-redirect': patch
3+
---
4+
5+
51CTO 博客文章页支持直接跳转

packages/remove-redirect/src/sites/51cto.com.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ const sites: SiteModule = [
77
'51CTO 博客',
88
'blog.51cto.com',
99
{
10+
rewriteWindowOpen: {
11+
validationRule: '51cto.com/transfer?',
12+
separator: '?',
13+
},
1014
autojump: {
1115
validator: ({ pathname }) => pathname === '/transfer',
1216
separator: '?',

0 commit comments

Comments
 (0)