Skip to content

Commit ae53f4f

Browse files
committed
feat(remove-redirect): 适配 NodeSeek (#40)
1 parent 6f53edb commit ae53f4f

4 files changed

Lines changed: 30 additions & 1 deletion

File tree

.changeset/tiny-buckets-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'remove-redirect': minor
3+
---
4+
5+
适配 NodeSeek [#40](https://github.com/maomao1996/tampermonkey-scripts/issues/40)

packages/remove-redirect/metablock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name:en": "Remove Redirect",
66
"namespace": "maomao1996.remove-redirect",
77
"version": "1.12.0",
8-
"description": "提升用户体验:修复跳转链接为站外直链(移除重定向直接跳转),免去拦截页面点击步骤可直达站外;拦截页面自动跳转(无须额外操作);已适配ACG盒子、爱发电、百度搜索、百度贴吧、哔哩哔哩游戏WIKI、Bing 搜索、书签地球、酷安、CSDN、豆瓣、Facebook、码云、Google 搜索、Google 重定向页、花瓣网、InfoQ、Instagram、简书、掘金、金山文档、链滴、力扣(Leetcode)、51CTO 博客、NGA 玩家社区、牛客网、开源中国、pixiv、微信、微信开放社区、QQ 邮箱、PC 版 QQ、腾讯文档、腾讯兔小巢、石墨文档、360 搜索、搜狗搜索、少数派、Steam 社区、腾讯云开发者社区、推特(Twitter)、微博、微博短链接、YouTube、语雀、知乎、知乎专栏",
8+
"description": "提升用户体验:修复跳转链接为站外直链(移除重定向直接跳转),免去拦截页面点击步骤可直达站外;拦截页面自动跳转(无须额外操作);已适配ACG盒子、爱发电、百度搜索、百度贴吧、哔哩哔哩游戏WIKI、Bing 搜索、书签地球、酷安、CSDN、豆瓣、Facebook、码云、Google 搜索、Google 重定向页、花瓣网、InfoQ、Instagram、简书、掘金、金山文档、链滴、力扣(Leetcode)、51CTO 博客、NGA 玩家社区、NodeSeek、牛客网、开源中国、pixiv、微信、微信开放社区、QQ 邮箱、PC 版 QQ、腾讯文档、腾讯兔小巢、石墨文档、360 搜索、搜狗搜索、少数派、Steam 社区、腾讯云开发者社区、推特(Twitter)、微博、微博短链接、YouTube、语雀、知乎、知乎专栏",
99
"author": "",
1010
"homepage": "",
1111
"supportURL": "",

packages/remove-redirect/src/sites/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export { default as kdocsCn } from './kdocs.cn'
2020
export { default as ld246Com } from './ld246.com'
2121
export { default as leetcodeCn } from './leetcode.cn'
2222
export { default as ngaCn } from './nga.cn'
23+
export { default as nodeseekCom } from './nodeseek.com'
2324
export { default as nowcoderCom } from './nowcoder.com'
2425
export { default as oschinaNet } from './oschina.net'
2526
export { default as pixivNet } from './pixiv.net'
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/******************************************************************************
2+
** NodeSeek
3+
** - https://www.nodeseek.com/post-128140-1
4+
** - https://www.nodeseek.com/jump?to=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
5+
******************************************************************************/
6+
const sites: SiteModule = [
7+
[
8+
'NodeSeek',
9+
'nodeseek.com',
10+
{
11+
transform: {
12+
selector: 'a[href^="/jump?to="]',
13+
queryName: 'to',
14+
},
15+
autojump: {
16+
validator: ({ pathname }) => pathname === '/jump',
17+
queryName: 'to',
18+
},
19+
},
20+
],
21+
]
22+
23+
export default sites

0 commit comments

Comments
 (0)