搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Import Standard set of Bookmarks

  • 6 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 cor-el

more options

I would like to deploy a standard set of bookmarks to users without overwriting their existing bookmarks. I would like this to happen each time the user launches FF to ensure they always have this set of bookmarks. Would using 'browser.places.importbookmarkshtml' be sufficient, or do I have to modify the user.js file for the setting to remain 'true'? Also, how do I specify the location of the bookmarks file? I should also mention that I currently have the 'browser.bookmarks.autoexporthtml' set to 'true' with a path defined in the 'browser.bookmarks.file' setting. Suggestions?

Thanks.

I would like to deploy a standard set of bookmarks to users without overwriting their existing bookmarks. I would like this to happen each time the user launches FF to ensure they always have this set of bookmarks. Would using 'browser.places.importbookmarkshtml' be sufficient, or do I have to modify the user.js file for the setting to remain 'true'? Also, how do I specify the location of the bookmarks file? I should also mention that I currently have the 'browser.bookmarks.autoexporthtml' set to 'true' with a path defined in the 'browser.bookmarks.file' setting. Suggestions? Thanks.

所有回复 (6)

more options

Sorry, I don't recall seeing this pref - browser.places.importbookmarkshtml - where have you seen that pref listed or referenced? Also, that pref doesn't look "correct", like maybe "browser.places.importBookmarksHtml" being closer to what Mozilla might have used as a pref name. As "browser.bookmarks.autoExportHTML" rather than "browser.bookmarks.autoexporthtml".

I wonder if that "browser.places.importbookmarkshtml" is a very old pref?

With a search of the Mozilla Developer Network, this page comes up first. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIPlacesImportExportService I don't see direct mention about that pref, but I do see that many features went obsolete as of Gecko 14 (which equates to Firefox 14).

And nothing here either - https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsINavBookmarksService

more options

My post didn't reference the correct 'case' of the settings, but I did ensure both were correct in the about:config - e.g., browser.places.importBookmarksHtml and browser.bookmarks.autoExportHTML. As you have said, I haven't found much documentation on using the importBookmarksHTML, but I have seen a couple of posts referencing it. As to whether or not it's officially supported, I'm not sure.

The real question, though, is how can I deploy a set of bookmarks to users on a consistent basis? (and without resorting to Add-ons or extensions)

由eddythorn于修改

more options
more options

Thanks cor-el. I was actually going to submit another question regarding the use of the distribution.ini file. I have tried this, but have been unsuccessful. Where does this file go so that it can be propagated to new profiles? And, can this file (or folder/file combo) be manually copied to existing profiles? Thanks

more options

I figured out how to use the distribution.ini file, so now a new user of FF will have the bookmarks I specified. However, how can I do this for existing users? And what if I need to update the bookmarks after the fact? Can this be done?

more options

I haven't used this method myself, so I don't know exactly how it works and whether you can add/modify the bookmarks.

You can look at this extension, also created by Mike Kaply to see if that makes it easier.