From d3780293d80aa7369f60b17e1cf85ffb66d9fafe Mon Sep 17 00:00:00 2001 From: msojocs Date: Thu, 7 Nov 2024 20:16:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B9=BF=E5=91=8A=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/area_unlimit/hook/common.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/extensions/area_unlimit/hook/common.js b/extensions/area_unlimit/hook/common.js index 0825f94..44611af 100644 --- a/extensions/area_unlimit/hook/common.js +++ b/extensions/area_unlimit/hook/common.js @@ -1285,6 +1285,18 @@ const URL_HOOK_FETCH = { return data.res }, + /** + * 视频列表 + * + * @param {{urlInfo: [string, string], config: RequestInit, res: Response }} data 原请求结果 + * @returns {Promise} + */ + "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 + } }