簡體   English   中英

如何獲取最新版本的 firefox 插件的鏈接?

[英]How to get the link to the latest version of firefox addon?

我不想將用戶重定向到 firefox 的商店來安裝插件。 我希望用戶能夠立即在我自己的網站上安裝插件。 我知道為此我應該使用 href to.xpi 文件創建“a”元素。 但是我如何才能從 firefox 商店獲得插件的最新版本.xpi 文件的鏈接?

我懂了。 總是得到最新版本的addon的xpi文件的公式:

addons.mozilla.org/firefox/downloads/latest/ADDON_NAME/addon-ADDON_ACCOUNT_ID-latest.xpi

根據Firefox Policy Templates ,應該可以簡單地使用https://addons.mozilla.org/firefox/downloads/latest/SHORT_NAME/latest.xpi ,其中SHORT_NAME對應於加載項名稱。 似乎沒有必要提取用戶 ID(不再?):

例如, https://addons.mozilla.org/firefox/downloads/latest/givero/latest.xpigivero

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM