Skip to content

Commit

Permalink
Update clean params (#974, #981)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Nov 19, 2020
1 parent 3ef0d76 commit 75dd9a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion min/url-params-clean.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/utils/url-params-clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const blockParams = [
'p2p_type',
'referfrom',
'visit_id',
'bsource',
]
const siteSpecifiedParams = [
{
Expand All @@ -36,7 +37,11 @@ const siteSpecifiedParams = [
{
match: /\/\/live\.bilibili\.com\//,
param: 'session_id',
}
},
{
match: /\/\/www\.bilibili\.com\/bangumi\//,
param: 'theme',
},
]
const noNormalizes = [
/game\.bilibili\.com\/fgo/,
Expand Down

0 comments on commit 75dd9a3

Please sign in to comment.