aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/mozilla/add-ons/webextensions/manifest.json/homepage_url/index.html
blob: 006bd6ca48526c04cea7ae7d952900ffa8248e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: homepage_url
slug: Mozilla/Add-ons/WebExtensions/manifest.json/homepage_url
tags:
  - 擴充套件
translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/homepage_url
---
<div>
<div>{{AddonSidebar}}</div>

<table class="fullwidth-table standard-table">
 <tbody>
  <tr>
   <th scope="row" style="width: 30%;">型別</th>
   <td><code>String</code></td>
  </tr>
  <tr>
   <th scope="row">強制</th>
   <td>No</td>
  </tr>
  <tr>
   <th scope="row">範例</th>
   <td>
    <pre class="brush: json no-line-numbers  language-json">
<code class="language-json"><span class="key token">"homepage_url":</span> <span class="string token">"https://example.org/my-addon"</span></code></pre>
   </td>
  </tr>
 </tbody>
</table>

<p>套件首頁的URL。</p>

<p>如果有 <a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/developer">developer</a> 鍵且它包含 "url" 屬性,這會覆蓋 homepage_url 鍵。</p>

<p>這是一個<a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Internationalization#Internationalizing_manifest.json">可侷限的屬性</a></p>

<h2 id="範例">範例</h2>

<pre class="brush: json no-line-numbers  language-json"><code class="language-json"><span class="key token">"homepage_url":</span> <span class="string token">"https://github.com/mdn/webextensions-examples/tree/master/beastify"</span></code></pre>

<h2 id="瀏覽器兼容性">瀏覽器兼容性</h2>
</div>

<p>{{Compat("webextensions.manifest.homepage_url")}}</p>