need to add url to popup exceptions and trusted sites via a .bat or some sort of programing file for everyone
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
Todas las respuestas (4)
And the ESR mailing list for specifics: https://www.mozilla.org/en-US/firefox.../faq/
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
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.