Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

locking preferences : Margin should be 0

  • 1 svar
  • 2 har detta problem
  • 6 visningar
  • Senaste svar av cor-el

more options

Hi everybody, I'm deployng Firefox with locked preferences in the company where I work for.

In out envyroment I have the need of locking margin preferences (they should be set to 0) ... but it seems possible to set them only for the current printer. For example, if I set margin 0 in my firefox (I have a printer named "Call Center Kyocera fs 1128 ...etc" installed as default), when i look into pref.js I find :

user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_bgcolor", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_bgimages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_evenpages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footercenter", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footerleft", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footerright", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headercenter", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headerleft", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headerright", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_in_color", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_bottom", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_left", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_right", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_top", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_oddpages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_orientation", 0); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_reversed", false); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_scaling", " 1,00");


The main point is that when I'm deployng Firefox on 100+ client, every client has a different printer, so I'm not able to create a universal mozilla.cfg to lock everyone's margin to 0!

Got some idea how to solve it ?

Hi everybody, I'm deployng Firefox with locked preferences in the company where I work for. In out envyroment I have the need of locking margin preferences (they should be set to 0) ... but it seems possible to set them only for the current printer. For example, if I set margin 0 in my firefox (I have a printer named "Call Center Kyocera fs 1128 ...etc" installed as default), when i look into pref.js I find : user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_bgcolor", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_bgimages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_evenpages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footercenter", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footerleft", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footerright", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headercenter", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headerleft", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headerright", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_in_color", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_bottom", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_left", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_right", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_top", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_oddpages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_orientation", 0); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_reversed", false); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_scaling", " 1,00"); The main point is that when I'm deployng Firefox on 100+ client, every client has a different printer, so I'm not able to create a universal mozilla.cfg to lock everyone's margin to 0! Got some idea how to solve it ?

Alla svar (1)

more options

The mozilla.cfg is run as a true JavaScript file and thus can contain JavaScript and not only user_pref() calls like prefs.js and user.js.

You could try to come up with JavaScript to modify prefs.js or a user.js file to set those margins.