Google chrome extension chrome扩展不';t载荷

Google chrome extension chrome扩展不';t载荷,google-chrome-extension,Google Chrome Extension,做了我的第一个合唱外接,它在老合唱团上很好用。 现在使用新的一个尝试加载未打包的ext,但它根本不起作用。我看到了我的ext弹出广告bg.html,但内容脚本根本没有加载,目标页面上没有应该显示的图像。 其他未打包的ext可以正常工作。但是我的垃圾有用(请帮帮我! manifest.json: { "background_page": "bg.html", "name": "lardi trans",

做了我的第一个合唱外接,它在老合唱团上很好用。 现在使用新的一个尝试加载未打包的ext,但它根本不起作用。我看到了我的ext弹出广告bg.html,但内容脚本根本没有加载,目标页面上没有应该显示的图像。 其他未打包的ext可以正常工作。但是我的垃圾有用(请帮帮我!
manifest.json

{
    "background_page": "bg.html",
    "name": "lardi trans",
    "version": "1.0",
    "icons": {
        "48": "icon_48.png"
    },
    "browser_action": {
        "default_icon": "icon_48.png",
        "default_title": "Lardi Trans",
        "default_popup": "popup.html"
    },
    "permissions": [
        "tabs",
        "notifications",
        "http://lardi-trans.com/gruz/*",
        "http://lardi-trans.com/trans/*",
        "unlimitedStorage"
    ],
    "content_scripts": [{
        "matches": [
            "http://lardi-trans.com/gruz/*",
            "http://lardi-trans.com/trans/*"
        ],
        "css": ["extent_styles.css"],
        "js": ["jq.js", "script.js"],
        "run_at": "document_end"
    }]
}
ext应该在哪里的页面截图我标记了必须出现我的表单的位置
和其他的ext脚本加载方式一样!(5倍于同一个脚本?WTF???)但无论如何,我看不到我的ext script.js(为什么它不加载?)

你不必给出css到manifest.json文件的链接。只需在bg.html中调用它即可

mymanifest.json文件


{
  "name": "Example",
  "version": "2.0",
  "description": "Example.com Description",
  "icons": { "16":"Images/Example/16x16.png", "32":"Images/Example/32x32.png", "48": "Images/Example/48x48.png", "64": "Images/Example/64x64.png", "128": "Images/Example/128x128.png" },

  "app": 
  {
        "default_icon": "../Images/Example/icon.png",
        "launch": 
        {
            "local_path": "Pages/Index.html"
        }
  },

  "permissions": [ "http://www.Example.com/", 
                   "http://*.Example.com/", 
                   "https://www.Example.com/",
                   "https://*.Example.com/",
                   "unlimitedStorage",
                   "tabs",
                   "notifications"
                   ],
  "options_page": "Pages/Options.html",
  "background_page": "Pages/Background.html"
}
如果这个答案对你有帮助,请将它标记为答案

如果你还在犯错误,请让他们知道答案的底部

致以最良好的祝愿

编辑

查看错误-步骤

单击扩展按钮将其打开

使用F12键在Google Chrome中打开调试窗口

单击“控制台”选项卡页面

拍摄一张截图,并在你的问题中发布图片

这样每个人都可以帮助你

编辑2:

好吧,你的问题现在看起来有点不同了

这里是算法

使用jquery下载目标网页的站点源代码, 用json在head标记中插入css行, 在localStorage(html5)中存储新的源代码 完成后,使用js刷新页面,并从localStorage读取新的源代码
并在html中显示。

如果有人感兴趣,问题已解决,出于某种原因,请在清单中添加UNPP WhitePases
“内容\u脚本”:[{
“匹配项”:[“http://lardi-trans.com/gruz/*","http://lardi-trans.com/trans/*“],

这很有效!)

它应该做什么?是否发生任何错误?(内容脚本错误会在其活动的页面上报告,背景脚本错误可以通过
chrome://extensions/
->->
bg.html
(在开发人员模式下)。不幸的是,脚本没有加载(而且课程错误不会出现。我不能用这样模糊的描述做任何事情……写一份适当的错误报告。内容脚本和其他文本文件,如content_css.css,根本不会被植入目标页面。但我可以看到背景页面和弹出窗口,它们应该添加一些html表单,为网站lardi-trans.com ma提供一些附加功能。)在功能中是搜索加载并发出关于Find p.s.的通知。对不起,我的英语),但我需要将我的css样式注入目标页面(lardi trans.com),它一直在工作,直到我尝试在新的compit上安装。我会尝试它,但主要问题是我的Extension script.js没有加载(我不知道为什么)。