扩展拦截请求域名
文档说明:只记录关键地方; 2023-01-29
工具: ReplaceGoogleCDN
实验环境: chromium 内核浏览器
使用例子: 例子:拦截访问域名https://www.jingjingxyk.com
更多玩法,可 配合content_scripts 实现清除内容农场
规则例子
[
{
"id": 1,
"priority": 2,
"action": { "type": "block" },
"condition": {
"urlFilter": "*",
"requestDomains": [
"www.jingjingxyk.com",
"analytics.twitter.com",
"analytics.yahoo.com"
],
"resourceTypes": [
"main_frame",
"sub_frame",
"stylesheet",
"script",
"image",
"font",
"object",
"xmlhttprequest",
"ping",
"csp_report",
"media",
"websocket",
"webtransport",
"webbundle",
"other"
]
}
}
]
把上述规则例子添加到ReplaceGoogleCDN扩展的自定义规则即可