Skip to content

使用 Redirector 插件解决 googleapis 公共库加载的问题

Chrome 或者 Firefox,下载 Redirector 插件,导入下面的配置。

json
{
  "createdBy": "Redirector v3.1.0",
  "createdAt": "2017-08-10T05:57:44.058Z",
  "redirects": [
    {
      "description": "重定向规则应用于谷歌 Ajax 公共库",
      "exampleUrl": "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",
      "exampleResult": "http://ajax.lug.ustc.edu.cn/ajax/libs/jquery/1.7.1/jquery.min.js",
      "error": null,
      "includePattern": "*ajax.googleapis.com*",
      "excludePattern": "",
      "redirectUrl": "$1ajax.lug.ustc.edu.cn$2",
      "patternType": "W",
      "processMatches": "noProcessing",
      "disabled": false,
      "appliesTo": ["script"]
    }
  ]
}
{
  "createdBy": "Redirector v3.1.0",
  "createdAt": "2017-08-10T05:57:44.058Z",
  "redirects": [
    {
      "description": "重定向规则应用于谷歌 Ajax 公共库",
      "exampleUrl": "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",
      "exampleResult": "http://ajax.lug.ustc.edu.cn/ajax/libs/jquery/1.7.1/jquery.min.js",
      "error": null,
      "includePattern": "*ajax.googleapis.com*",
      "excludePattern": "",
      "redirectUrl": "$1ajax.lug.ustc.edu.cn$2",
      "patternType": "W",
      "processMatches": "noProcessing",
      "disabled": false,
      "appliesTo": ["script"]
    }
  ]
}

最后编辑时间:

Version 4.0 (framework-1.0.0-rc.20)