Youtube player API in Chrome extension

后端 未结 2 1369
闹比i
闹比i 2020-12-18 14:14

I\'m looking to use the Youtube player API in my Youtube Chrome extension.
My goal is to be able to control the player\'s controls on Youtube website from my content scr

2条回答
  •  不思量自难忘°
    2020-12-18 15:08

    This should be saved in the manifest.json

     {
    "manifest_version": 2,
    
    "name": "example",
    "description": "Lorem Ipsum dollar sit amet",
    "version": "0.0",
    
    "browser_action": {
      "default_icon": "icon.png",
      "default_popup": "popup.html"
    },
    "permissions": [
      "activeTab",
      "tabs",
      "content_security_policy"
    ]
    }
    

提交回复
热议问题