Skip to content

Commit

Permalink
update: url judge
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed May 26, 2024
1 parent 6d7083b commit 536d6d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import {
* 净化掉vd_source参数会导致充电窗口载入失败
*/
const cleanURL = () => {
if (location.href.includes('www.bilibili.com/correspond/')) {
return
}
// 直播域名各种iframe页面(天选、抽奖)和活动页特殊处理
if (location.href.match(/live\.bilibili\.com\/(p\/html|activity|blackboard)/)) {
return
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default defineConfig({
'*://api.bilibili.com/*',
'*://api.*.bilibili.com/*',
'*://*.chat.bilibili.com/*',
'*://member.bilibili.com/*',
],
icon: 'https://www.bilibili.com/favicon.ico',
'run-at': 'document-start',
Expand Down

0 comments on commit 536d6d5

Please sign in to comment.