首页 > 其他分享 >ReplaceGoogleCDN扩展功能使用二:拦截请求域名

ReplaceGoogleCDN扩展功能使用二:拦截请求域名

时间:2023-01-29 15:59:20浏览次数:64  
标签:域名 例子 ReplaceGoogleCDN 规则 拦截 com

文档说明:只记录关键地方; 2023-01-29

使用例子: 例子:拦截访问域名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扩展的自定义规则即可

标签:域名,例子,ReplaceGoogleCDN,规则,拦截,com
From: https://www.cnblogs.com/jingjingxyk/p/17072867.html

相关文章