Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能使用二:拦截域名或者拦截跟踪域名,或者屏蔽内容农场域名 #136

Open
jingjingxyk opened this issue Dec 29, 2022 · 0 comments

Comments

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Dec 29, 2022

使用例子: 例子:拦截访问域名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",
         "ssl.google-analytics.com"
     ],
      "resourceTypes": [
        "main_frame",
        "sub_frame",
        "stylesheet",
        "script",
        "image",
        "font",
        "object",
        "xmlhttprequest",
        "ping",
        "csp_report",
        "media",
        "websocket",
        "webtransport",
        "webbundle",
        "other"
      ]
    }
  }
]
@jingjingxyk jingjingxyk changed the title 功能使用二:拦截域名或者拦截跟踪域名 功能使用二:拦截域名或者拦截跟踪域名,或者屏蔽内容农场域名 Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant