开发者

Where Firefox extensions store data?

开发者 https://www.devze.com 2022-12-26 16:22 出处:网络
I want to write plugin for GNOME Do, that will work with Firefox ext开发者_JS百科ensions data (for example, with URL Alias patterns). I have looked through files in my profile folder (~/.mozilla/firef

I want to write plugin for GNOME Do, that will work with Firefox ext开发者_JS百科ensions data (for example, with URL Alias patterns). I have looked through files in my profile folder (~/.mozilla/firefox/.default/), but haven't found anything related.

Can anybody help me?


I unzipped the XPI, and it looks like the key data is stored in the preference system under the urlalias branch. This is serialized to disk in the prefs.js. file Each line is a single preference, so it should be pretty simple to parse (you could conceivably use Firefox's XPCOM interface, but that's probably unnecessary).

0

精彩评论

暂无评论...
验证码 换一张
取 消