1
在我的Firefox插件中,我正在尋找一種安全的方式來讓內容代碼檢測插件本身的存在。 理想是什麼,我想用被允許內容代碼通過執行查詢我的插件存在落得:允許內容文檔(網頁)檢測我的Firefox插件
if (window.navigator.my_addon) {
// the addon is present
} else {
// the addon is not present
}
任何建議/指針?
參見http://stackoverflow.com/questions/5067375/detecting-my-own-firefox-extension - 從-A-網頁 – Neil 2011-02-23 20:28:03