开发chrome扩展( 禁止指定域名使用插件)

mainfest.json:

javascript 复制代码
{
  "manifest_version": 3,
  "name": "ChatGPT学习",
  "version": "0.0.2",
  "description": "ChatGPT,GPT-4,Claude3,Midjourney,Stable Diffusion,AI,人工智能,AI",
  "icons": {
    "16": "./images/logo.png",
    "48": "./images/logo.png",
    "128": "./images/logo.png"
  },
  "content_scripts": [
    {
      "matches": ["http://*/*", "https://*/*"],
      "exclude_matches": [
        "https://chat.xutongbao.top/*",
        "http://localhost:8081/*"
      ],
      "css": ["./dist/lib/layui.css", "./dist/css/app.css"],
      "js": ["./dist/lib/layui.js", "./dist/js/app.js", "./index.js"]
    }
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self';"
  }
}

content_scripts.exclude_matches 禁止这些域名使用插件

人工智能学习网站:

https://chat.xutongbao.top

相关推荐
我叫蒙奇12 小时前
JS中的隐式类型转换
前端
他们叫我秃子12 小时前
前端开发转 Go 全栈(四):代码写在前面,却要最后执行?我终于搞懂了 defer
前端·后端·go
生戎马 平安京策12 小时前
只学一点点:我的技术学习策略
前端·javascript·react.js
大鹏说大话12 小时前
HTML5 地理定位 Geolocation:获取用户位置的“红线”与最佳实践
前端·html·html5
Csvn12 小时前
content-visibility: auto —— 让浏览器跳过离屏渲染的性能黑科技
前端
小鹰信息技术服务部12 小时前
Edge安装包MicrosoftEdgeSetup.exe无法运行,点击没反应
前端·edge
webkubor13 小时前
一次前端生产白屏复盘:旧 HTML、Hash 资源和 MIME type text/html
前端·前端工程化
咩咩啃树皮13 小时前
第63篇【终极整合巨作】从零手写原生中后台管理系统|整合62篇全部前端知识点|从头到尾完整架构+全功能逻辑
前端·架构
小龙飞刀14 小时前
Chrome插件自动化测试:单元测试、集成测试
chrome·单元测试·集成测试
Highcharts15 小时前
用Highcharts如何动态向一个序列添加点-示列讲解
前端