Skip to content

Commit

Permalink
update: clean url
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Apr 11, 2024
1 parent d7a7e21 commit 45a57cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ const cleanURL = () => {
'visit_id',
'extra_jump_from',
])
// 搜索页参数, 意义不明所以做一下判断
if (isPageSearch()) {
keysToRemove.add('vt')
}
if (isPageLiveRoom()) {
keysToRemove.add('bbid')
keysToRemove.add('ts')
}
const url = location.href
const urlObj = new URL(url)
const params = new URLSearchParams(urlObj.search)
Expand Down

0 comments on commit 45a57cf

Please sign in to comment.