开发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

相关推荐
谭光志19 分钟前
Vibe Coding 时代,程序员该何去何从
前端·后端·ai编程
仿生狮子2 小时前
别再说“全栈”了,AI 时代团队只认这 5 种人
前端·人工智能·后端
kyriewen2 小时前
AI 写的 React 组件,合并前必查的 6 个坏味道——每个都有代码对比
前端·javascript·react.js
Highcharts.js2 小时前
软件开发公司为什么选择 Highcharts?
前端·前端框架·echarts·数据可视化·技术选型·highcharts·图表工具
阿祖zu3 小时前
企业 AI 转型之痛,个人提效十倍不止,组织效率仍止步不前?
前端·aigc·agent
摇滚侠4 小时前
SpringBoot3+Vue3 全套视频教程 45-51
前端·javascript·vue.js
酸梅果茶5 小时前
【6】lightning_lm项目-LIO 前端 -点云预处理模块
前端·slam
Hilaku5 小时前
前端大裁员背后的恐慌:我们还剩什么底牌?
前端·javascript·程序员
咖啡无伴侣6 小时前
unplugin-auto-import 使用详解+面试高频考点
前端·架构
搬砖记录员6 小时前
录屏文件打不开?H.265兼容性踩坑与4种实战方案
前端