如何使 Firefox 配置文件文件夹中的数据对扩展可用
How to make data available from a Firefox profile folder to an extension
我想以编程方式设置一个新的 Firefox 配置文件(firefox -profile "profile_path"
) window title to include the profile's name using windows.update
and titlePreface
。可以通过选项屏幕配置浏览器扩展,但这些需要大量的点击操作,无法自动完成。
有没有什么方法可以让我在我的 Firefox 配置文件文件夹中写入信息,然后我可以从扩展程序中读取这些信息?如果可能的话,我想将配置文件的名称写入扩展可以读取的某个文件或 sqlite 数据库。我循环浏览了很多 Firefox 配置文件并自定义了我的 user.js
和 userChrome.css
,但是扩展的设置更加困难和手动。
另一个想法是以编程方式创建扩展以包含配置文件名称,但每个扩展都必须签名,这太麻烦了。
Is there any way for me to write information in my Firefox profile
folder, that I could then read from an extension?
这在 Firefox 57+ 中不再可行
只能通过可用的 API 访问所有设置,并且它们不像旧版 Firefox 那样广泛。
我想以编程方式设置一个新的 Firefox 配置文件(firefox -profile "profile_path"
) window title to include the profile's name using windows.update
and titlePreface
。可以通过选项屏幕配置浏览器扩展,但这些需要大量的点击操作,无法自动完成。
有没有什么方法可以让我在我的 Firefox 配置文件文件夹中写入信息,然后我可以从扩展程序中读取这些信息?如果可能的话,我想将配置文件的名称写入扩展可以读取的某个文件或 sqlite 数据库。我循环浏览了很多 Firefox 配置文件并自定义了我的 user.js
和 userChrome.css
,但是扩展的设置更加困难和手动。
另一个想法是以编程方式创建扩展以包含配置文件名称,但每个扩展都必须签名,这太麻烦了。
Is there any way for me to write information in my Firefox profile folder, that I could then read from an extension?
这在 Firefox 57+ 中不再可行
只能通过可用的 API 访问所有设置,并且它们不像旧版 Firefox 那样广泛。