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

Setting the default for print.print_(header or footer)(option) in channel-prefs.js does not work

  • 6 trả lời
  • 3 gặp vấn đề này
  • 6 lượt xem
  • Trả lời mới nhất được viết bởi the-edmeister

more options

In Linux (Firefox ESR 17.0), when setting the default for print.print_(header or footer)(option) in /opt/firefox/defaults/pref/channel-prefs.js and verifying the change in about:config does not work. When doing a print preview it doesn't show the set values. I have also tried to setting the print_(header and footer)(option) to blank. Please help.

-Sabino

In Linux (Firefox ESR 17.0), when setting the default for print.print_(header or footer)(option) in /opt/firefox/defaults/pref/channel-prefs.js and verifying the change in about:config does not work. When doing a print preview it doesn't show the set values. I have also tried to setting the print_(header and footer)(option) to blank. Please help. -Sabino

Tất cả các câu trả lời (6)

more options

See if it works using a user.js file?

http://kb.mozillazine.org/User.js_file

more options

I have created a user.js in my home directory (~/.mozilla/user.js) and looked at at the about:config in my browser to make sure the values are the same as in the user.js file and they match. The following is what I have in my user.js file: pref("print.print_footercenter", ""); pref("print.print_footerleft", ""); pref("print.print_footerright", ""); pref("print.print_headercenter", ""); pref("print.print_headerleft", ""); pref("print.print_headerright", "");

When I go to try to print preview, I still see the firefox default values. I also see the default setting in File > Print > Options

more options

in the user.js file please use user_pref(...); instead.

more options

I tried both user_pref and pref. Still does not show my preferences.

more options

Also the user.js file needs to be in the Firefox profile folder.

You can use this button to go to the Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Show Folder
more options