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

功能使用五:使用自定义规则,看这里 #139

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

功能使用五:使用自定义规则,看这里 #139

jingjingxyk opened this issue Dec 29, 2022 · 0 comments

Comments

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Dec 29, 2022

自定义规则,看这里 #115

例子 raw.githubusercontent.com =》raw.staticdn.net

配合最新版 扩展,复制粘贴进去,自定义规则就可以用了。自用自己配置。

[
  {
    "id": 1,
    "priority": 1,
    "action": {
      "type": "redirect",
      "redirect": {
        "transform": { "scheme": "https", "host": "raw.staticdn.net" }
      }
    },
    "condition": {
      "urlFilter": "raw.githubusercontent.com",
      "requestDomains": ["raw.githubusercontent.com"],
      "resourceTypes": [
        "main_frame",
        "sub_frame",
        "stylesheet",
        "script",
        "image",
        "font",
        "object",
        "xmlhttprequest",
        "ping",
        "csp_report",
        "media",
        "websocket",
        "webtransport",
        "webbundle",
        "other"
      ]
    }
  }
]

2022-10-06 23-00-19屏幕截图

配置多条,priority 值越大,优先级越高,优先级最高的规则生效

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