Chrome content script does not load in about:blank page

后端 未结 2 772
小鲜肉
小鲜肉 2021-01-19 01:24

I am developing a Chrome extension which will load content script according to the following manifest:

\"content_scripts\" : [
    {
      \"matches\" : [ \"         


        
2条回答
  •  日久生厌
    2021-01-19 02:04

    In the manifest file, add a line:

    "content_scripts" : [
    {
      "matches" : [ "" ],
      "match_about_blank" : true,
      "js" : [  "scripts/namespace/namespace.js",
                "scripts/log/Logger.js"]
       "run_at" : "document_start",
       "all_frames" : true
     }
    ]
    

提交回复
热议问题