我想创建自己的附加组件,根据代理更改首选项(如果正在使用代理),这可能吗?我在Firefox Add-On IRC中询问但没有回复,所有用户都闲置。
示例:
// If proxy is enabled
lockPref("general.appname.override", "Netscape");
lockPref("general.appversion.override", "5.0 (Windows)");
lockPref("general.buildID.override", "20100101");
lockPref("general.oscpu.override", "Windows NT 6.1; Win32");
lockPref("general.platform.override", "Win32");
lockPref("general.productsub.override", "20100101");
lockPref("general.useragent.locale", "en-US");
lockPref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0");