<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ## 常用配置 其中,`name`、`version` 和 `manifest_version` 是必須的,`manifest_version`目前統一是2。 必填配置: ``` { "name": "Extension", // 擴展名稱 "version": "1.0.0", // 版本信息,才用x.y.z格式,更新時必須更改版本,且大于上個版本 "manifest_version": 2 // 必須為2 } ``` 常用可選配置: ``` { "description": "", // 擴展簡介 "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, // icon文件,建議提供3種不同大小的,Chrome會在不同情況是用對應大小的圖片 "default_locale": "en" // 默認語言,選擇后,目錄中必須有_lcoales目錄,然后建立語言目錄。后面章節會講到 "browser_action": { "default_icon": "icon16.png", "default_title": "擴展tooltip提示名稱", "default_popup": "popup.html" }, // 設置默認的popup頁 "background": { "persistent": true, "scripts": [ "background.js" ] }, // 背景頁,打開擴展就會常駐,主要用于數據傳遞 "options_page": "options.html", // 選項頁,如果不設置,右鍵擴展[選項]會處于置灰狀態 "permissions": [ "tabs", // tab權限 "\u003Call_urls\u003E" // <all_urls>表示匹配所有地址,最好采用unicode寫法,獲取對應網址的權限,你也可以寫具體網址,如: "https://*.google.com",當你需要請求對應網址的資源是需要 ], // 擴展權限,Chrome擴展的權限都需要指定,從而使用相對應的Chrome API "web_accessible_resources": [ "icon16.png", "icon48.png", "icon128.png" ], // 資源白名單,可插入Web頁面 "content_scripts": [ { "matches": [ "http://*/*", "https://*/*" ], // 地址匹配規則 "js": [ "content.js" ], // JS白名單 "css": [ "content.css" ], // CSS白名單 "all_frames": true, "run_at": "document_idle" // 注入位置 } ], // 腳本白名單 "content_security_policy": "script-src 'self'; bject-src 'self'", // 安全策略 "homepage_url": "https://github.com/excaliburhan/zhDaily" // 擴展首頁 } ``` 注: * `browser_action`和`page_action`二選一,或不設 * 配置文件里配置的文件路徑,都是相對于`mainfest.json`的相對路徑。 更多關于`manifest.json`:[https://developer.chrome.com/extensions/manifest](https://developer.chrome.com/extensions/manifest)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看