Skip to content

Commit ef5012f

Browse files
committed
feat(remove-redirect): 优化 PC 版 QQ 自动跳转验证规则
1 parent fb52373 commit ef5012f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/cuddly-bikes-nail.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+
优化 PC 版 QQ 自动跳转验证规则

packages/remove-redirect/src/sites/qq.com.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ const sites: SiteModule = [
6363
** - https://c.pc.qq.com/pc.html?url=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
6464
** - https://c.pc.qq.com/ios.html?url=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
6565
** - https://c.pc.qq.com/android.html?url=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
66+
** - https://c.pc.qq.com/middlect.html?pfurl=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
6667
******************************************************************************/
6768
[
6869
'PC 版 QQ',
6970
'c.pc.qq.com',
7071
{
7172
autojump: {
72-
validator: ({ pathname }) => /^\/(middleb|middlem|pc|ios|android)\.html$/.test(pathname),
73+
// validator: ({ pathname }) => /^\/(middleb|middlem|pc|ios|android)\.html$/.test(pathname),
74+
validator: ({ pathname }) => /^\/[a-z]+\.html$/.test(pathname),
7375
queryName: ['pfurl', 'url'],
7476
},
7577
},

0 commit comments

Comments
 (0)