본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to copy an new user.js over an existing one in the profile

  • 6 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: Slade0764

more options

Hello, i am silent deploying Firefox on many Pcs at a time. The Computers now have Firefox 14 on it and the people work with it well. I ve deployed it with setting changes in the user.js. Now i must deinstall the Firefox 14 and install Firefox 16 ... the firefox profile is still in the userprofile. Now i want to change silent one line in the user.js in my userprofile.... i do the new user.js in the <Programfiles/Firefox/defaults/profile> folder... but the new user.js do not copy in my userprofile and overwrite the old one... I am searching for an solution to add one setting in my user.js or pref.js in my old profile... Greeting Joe

Hello, i am silent deploying Firefox on many Pcs at a time. The Computers now have Firefox 14 on it and the people work with it well. I ve deployed it with setting changes in the user.js. Now i must deinstall the Firefox 14 and install Firefox 16 ... the firefox profile is still in the userprofile. Now i want to change silent one line in the user.js in my userprofile.... i do the new user.js in the <Programfiles/Firefox/defaults/profile> folder... but the new user.js do not copy in my userprofile and overwrite the old one... I am searching for an solution to add one setting in my user.js or pref.js in my old profile... Greeting Joe

선택된 해결법

hello manowar30, i think you can better achieve this by using the mozilla.cfg file in the programs folder. for reference refer to http://kb.mozillazine.org/Locking_preferences

문맥에 따라 이 답변을 읽어주세요 👍 2

모든 댓글 (6)

more options

선택된 해결법

hello manowar30, i think you can better achieve this by using the mozilla.cfg file in the programs folder. for reference refer to http://kb.mozillazine.org/Locking_preferences

more options

hi manowar30, you mean that the editing user.js file does not saved in the profile folder?

Editing user.js entries


thank you

more options

No, i already have an user.js in my profile. now i install the new version of firefox but the new user.js do not overwirte the old one in the profile...

i ve copied it to ../firefox/defaults/profile

from there it should be copied in the profile but it do not overwrite the old one in the profile...

more options

I thing you must try madperson's reply (the locking preferences)

thanks again

more options

You can use these functions in mozilla.cfg:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session (prevails user.js)
lockPref();     // lock pref, disallow any changes
more options

You need to create a batch file.. to copy the user.js file into the profile directory. The problem is... 1st The directory generates a random name when installed. 2nd it places a . in the directory name it creates. copy will not work.

To get around this .. there is a simple "for" command you can place in a batch file and will do the trick. example shown below.


set folder=%APPDATA%\mozilla\Firefox\Profiles

for /f %%i in ( ' dir /a:d/b "%folder%" ' ) do if exist "%folder%\%%i\." copy /y "C:\pathtofile\user.js" "%folder%\%%i\">nul

글쓴이 Slade0764 수정일시