- 安装 Redirector 插件。
- 在本地新建一个 json 文件,随意命名,写入以下内容:
JSON[
{
"from": "^https://www.luogu.com(/)?$",
"to": "https://www.luogu.com.cn",
"enabled": true,
"mode": "regex"
},
{
"from": "^https://www.luogu.com.cn/paste/(.*)$",
"to": "https://www.luogu.com/paste/$1",
"enabled": true,
"mode": "regex"
},
{
"enabled": true,
"from": "^https://www.luogu.com.cn/article/(.*)$",
"mode": "regex",
"to": "https://www.luogu.com/article/$1"
},
{
"enabled": true,
"from": "^https://www.luogu.com.cn/user/(.*)$",
"mode": "regex",
"to": "https://www.luogu.com/user/$1"
}
]
- 在 Redirector 插件中点击 Import 并且选择你创建的文件。
- 完成