@
palemoky 直接屏蔽
hdslb.com 会导致搜索和文章页面样式无法加载,可以在 Make BiliBili Great Again 中加入以下内容来解决:
```javascript
!function () {
const allowedDomain = '
s1.hdslb.com';
// 拦截 fetch 请求
const oldFetch = unsafeWindow.fetch;
unsafeWindow.fetch = function (url, ...args) {
if (typeof url === 'string' && url.includes('.hdslb.com') && !url.includes(allowedDomain)) {
return Promise.reject(new Response('拦截的请求', { status: 403 }));
}
return oldFetch.call(this, url, ...args);
};
}();
```