Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

locking preferences : Margin should be 0

  • 1 trả lời
  • 2 gặp vấn đề này
  • 6 lượt xem
  • Trả lời mới nhất được viết bởi 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 ?

Tất cả các câu trả lời (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.