Skip to content

Commit 695a886

Browse files
committed
feat(remove-redirect): 适配 Steam 社区
1 parent fcec726 commit 695a886

5 files changed

Lines changed: 36 additions & 1 deletion

File tree

.changeset/heavy-colts-grow.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+
适配 Steam 社区
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { test } from '@playwright/test'
2+
import { testRedirectRemoval } from '../utils/common'
3+
4+
test('Steam 社区链接重定向移除', async ({ page, context }) => {
5+
await testRedirectRemoval(
6+
page,
7+
context,
8+
'https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts',
9+
'https://github.com/maomao1996/tampermonkey-scripts',
10+
)
11+
})

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 搜索、搜狗搜索、少数派、腾讯云开发者社区、推特(Twitter)、微博、YouTube、语雀、知乎、知乎专栏",
8+
"description": "修复跳转链接为站外直链(移除重定向直接跳转),免去拦截页面点击步骤可直达站外;拦截页面自动跳转(无须额外操作);已适配ACG盒子、爱发电、百度搜索、百度贴吧、哔哩哔哩游戏WIKI、Bing 搜索、书签地球、酷安、CSDN、豆瓣、Facebook、码云、Google 搜索、Google 重定向页、花瓣网、InfoQ、Instagram、简书、掘金、金山文档、链滴、力扣(Leetcode)、51CTO 博客、NGA 玩家社区、牛客网、开源中国、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
@@ -28,6 +28,7 @@ export { default as shimoIm } from './shimo.im'
2828
export { default as soCom } from './so.com'
2929
export { default as sogouCom } from './sogou.com'
3030
export { default as sspaiCom } from './sspai.com'
31+
export { default as steamcommunityCom } from './steamcommunity.com'
3132
export { default as tencentCom } from './tencent.com'
3233
export { default as twitterCom } from './twitter.com'
3334
export { default as weiboCom } from './weibo.com'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/******************************************************************************
2+
** Steam 社区
3+
** - https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts
4+
******************************************************************************/
5+
const sites: SiteModule = [
6+
[
7+
'Steam 社区',
8+
'steamcommunity.com',
9+
{
10+
autojump: {
11+
validator: ({ pathname }) => pathname === '/linkfilter/',
12+
queryName: 'u',
13+
},
14+
},
15+
],
16+
]
17+
18+
export default sites

0 commit comments

Comments
 (0)