Skip to content

Commit

Permalink
feat: 广告过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 7, 2024
1 parent 5ac6c86 commit d378029
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extensions/area_unlimit/hook/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,18 @@ const URL_HOOK_FETCH = {
return data.res
},

/**
* 视频列表
*
* @param {{urlInfo: [string, string], config: RequestInit, res: Response }} data 原请求结果
* @returns {Promise<Response>}
*/
"https://api.bilibili.com/x/web-interface/wbi/index/top/feed/rcmd": async (data) => {
const resp = await data.res.clone().json()
resp.data.item = resp.data.item.filter(e => e.goto !== 'ad')
data.res = Response.json(resp)
return data.res
}

}

Expand Down

0 comments on commit d378029

Please sign in to comment.