Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
<binding id="blipfox-embed-youtube">
<content>
<html:embed
src="http://whatever/swf/file.swf"
width="240"
type="application/x-shockwave-flash" />
</content>
</binding>
init: function()Много думал.
{
this.prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService)
.getBranch("extensions.sample.");
this.prefs.QueryInterface(Components.interfaces.nsIPrefBranch2);
this.prefs.addObserver("", this, false);
}
Application.prefs.get("extensions.sample.").events.addListener("change", someFunction);Как вам этот вариант покажется?
navigator.preferenceПричём ссылка «navigator.preference» у них там в вики вообще красная.
Sets a user preference. This method is only available to privileged code, and you should use XPCOM Preferences API instead.
Расширения Firefox — Работа с настройками