当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Homepage keeps resetting; User.js file was deleted

  • 6 件の返信
  • 1 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: cor-el

more options

I got hit with a trojan horse recently and had to re-set Firefox. My user.js file was cleaned out by Adware, so now whenever I restart Firefox, it acts like it's never been started on my computer before. How can I create a new user.js file?

I got hit with a trojan horse recently and had to re-set Firefox. My user.js file was cleaned out by Adware, so now whenever I restart Firefox, it acts like it's never been started on my computer before. How can I create a new user.js file?

すべての返信 (6)

more options

You normally do not need a user.js in the profile folder.

Do you know what content was in the user.js file if you previously had such a file in the Firefox profile folder?

What kind of problems do you have?

Is Firefox still using the same default profile or does a new profile gets created?

The latter can be a problem with the profiles.ini file.

Otherwise there might be a problem with the prefs.js file if preferences aren't kept.


The user.js file is only present if you or other software has created this file and normally it wouldn't be there. You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.

The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.

more options

Firefox stores changes you make through the Options dialog, such as your home page, in prefs.js; it will look for a user.js file as a potential override, but does not store your changes there.

You could try copying the prefs.js file from your old profile folder (it's inside the "Old Firefox Data" folder the Reset created on your desktop) to your currently active Firefox profile. But it could contain traces of the infection that you had before...

If your settings keep getting lost each time you close and start Firefox again, you should address that first. Please consider:

  • Any software you may have that undoes browser settings changes, such as the "Surfing Protection" feature of Advanced SystemCare or the Home Page protection feature of some security software.
  • If you still have Search Protect in the Windows Control Panel, Uninstall a Program, make sure to remove that.
more options

Sorry, I wasn't clear enough. The old user.js file is already deleted; the new one is stuck in quarantine and I can't scrub it. So there basically is no file; it doesn't exist. The profile.ini is still there but says only this:

[General] StartWithLastProfile=1

[Profile0] Name=default IsRelative=1 Path=Profiles/ndu6u7l4.default

There is no fixing preferences or browser settings issues here; I've already tried all that. Without the user.js file it's going to act like FF has never been used on this system before.

more options

But in normal operation, there is no user.js file and Firefox works fine without it. The one in quarantine likely is in there because it was created or contaminated by unwanted software. My advice is to forget about user.js and consider the other information in this thread.

more options

It would appear my prefs.js file is quarantined as well; that may explain the problem better than the user.js. Fastest fix may be to uninstall/reinstall.

more options

Did you try to delete the prefs.js file to reset all prefs?

Delete a possible user.js file and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.