Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

need to add url to popup exceptions and trusted sites via a .bat or some sort of programing file for everyone

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

more options

I work in an enterprise size world. We need to add a few URLs to the trusted sites and to allow popups in Firefox for these sites. Due to the large number of PCs we need to do this on, I need a way to do it automatically via a batch file or inno script or some such way that will allow me to add theses exceptions for all users of Firefox with a single click. I can do this easily for IE, but need to be able to do this for Firefox. A .bat file or AutoIT or Inno Script would be preferred, but a VB script could be used in place of it.

Where is the list of trusted sites kept and where are the popup exceptions listed in the Firefox files structure. I have heard it is in the prefs.js file but I have, via the menu options, added in my exceptions and they have not shown up in that file. So in what file do they show up in?

Along the same lines and for similar reasons I would like to also know how to programmatically change the home page and add URL shortcuts to the Firefox Bookmarks Toolbar.

I know I can manually add these items and any other settings I want to Firefox via the menu/about:config methods and then blindly copy the "mozilla" folders from the appdata\local and appdata\roaming profile locations to any other profile, including the default and have my adjustments show up in Firefox in the appropriate areas, but in doing so I will overwrite any of the unique settings/links that the individual user may have added to the bookmarks toolbar etc. I would much rather just add to the users existing trusted sites and bookmarks etc instead of replacing them. I know the files I need to adjust must be in one or both of those two hidden profile folders, but which files/folders and are they editable is the big question.

Any and all help would be greatly appreciated.

Thanks in advance,

Ralph

I work in an enterprise size world. We need to add a few URLs to the trusted sites and to allow popups in Firefox for these sites. Due to the large number of PCs we need to do this on, I need a way to do it automatically via a batch file or inno script or some such way that will allow me to add theses exceptions for all users of Firefox with a single click. I can do this easily for IE, but need to be able to do this for Firefox. A .bat file or AutoIT or Inno Script would be preferred, but a VB script could be used in place of it. Where is the list of trusted sites kept and where are the popup exceptions listed in the Firefox files structure. I have heard it is in the prefs.js file but I have, via the menu options, added in my exceptions and they have not shown up in that file. So in what file do they show up in? Along the same lines and for similar reasons I would like to also know how to programmatically change the home page and add URL shortcuts to the Firefox Bookmarks Toolbar. I know I can manually add these items and any other settings I want to Firefox via the menu/about:config methods and then blindly copy the "mozilla" folders from the appdata\local and appdata\roaming profile locations to any other profile, including the default and have my adjustments show up in Firefox in the appropriate areas, but in doing so I will overwrite any of the unique settings/links that the individual user may have added to the bookmarks toolbar etc. I would much rather just add to the users existing trusted sites and bookmarks etc instead of replacing them. I know the files I need to adjust must be in one or both of those two hidden profile folders, but which files/folders and are they editable is the big question. Any and all help would be greatly appreciated. Thanks in advance, Ralph

所有回复 (4)

more options
more options

Thanks for the reply, but the information is not what I need. What I need to know is which file does Firefox store the Popup and trusted site exceptions in. I have heard that it may be in the permissions.sqlite file but that file does not seem to be in text format. Is this in fact where the trusts and exceptions are stored? If so how do I URL trusts and exceptions in to this file programmatically? Thanks again, Ralph

more options

Yes, it is permissions.sqlite and its a sqlite file that accept SQL runs from an example add on SQLite manager. I would assume like any sqlite file you could run INSERT INTO moz_hosts (id, host, type, permission, expireType, expireTime, appID, isInBrowserElement ) VALUES (id, "domainname.com","popup", 1,0,0,0,0,) in a saved query of the addon: https://code.google.com/p/sqlite-mana.../ExecuteSQL

CSV format: "4226","gmail.com","popup","1","0","0","0","0",

smfunctions.sqlite file seems to be the place to store functions in the profile Exmaple how to use javascript to run this is here: http://stackoverflow.com/questions/45.../is-it-possible-to-create-a-javascript-user-defined-function-in-sqlite

More details may need a developer, please also ask on stackoverflow.com where some dedicated developers can help you further.

more options