File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/remove-redirect/src/sites Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' remove-redirect ' : major
3
+ ---
4
+
5
+ 适配力扣(Leetcode)重定向页
Original file line number Diff line number Diff line change 1
1
/******************************************************************************
2
2
** 力扣(Leetcode)
3
3
** - https://leetcode.cn/problems/merge-intervals/solutions/204805/chi-jing-ran-yi-yan-miao-dong-by-sweetiee/
4
+ ** - https://leetcode.cn/link/?target=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
4
5
******************************************************************************/
5
6
const sites : SiteModule = [
6
7
[
@@ -10,6 +11,10 @@ const sites: SiteModule = [
10
11
transform : {
11
12
selector : '[href*="/link/?target="]' ,
12
13
} ,
14
+ autojump : {
15
+ validator : ( { pathname } ) => pathname === '/link/' ,
16
+ queryName : 'target' ,
17
+ } ,
13
18
} ,
14
19
] ,
15
20
]
You can’t perform that action at this time.
0 commit comments