Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

ابحث في الدعم

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.

Learn More

Why would user.js keep getting created on PC boot-up?

more options

My user.js file simply will not die. Every morning I start my computer to have the about:config setting 'general.useragent.override' and a user.js file which contains:

user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.0; xs-16Qc283ciRs;CiSxfh;");

So every morning I delete and/or edit user.js and reset 'general.useragent.override' in about:config, if I don't I'm constantly badgered about having an out-of-date browser by everyone including Mozilla. Even this posting miss identified my Firefox version because I hadn't yet cleared out this setting.

I have determined that user.js is definitely being created/overwritten on start-up but I can't tell what's doing it.

My user.js file simply will not die. Every morning I start my computer to have the about:config setting 'general.useragent.override' and a user.js file which contains: user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.0; xs-16Qc283ciRs;CiSxfh;"); So every morning I delete and/or edit user.js and reset 'general.useragent.override' in about:config, if I don't I'm constantly badgered about having an out-of-date browser by everyone including Mozilla. Even this posting miss identified my Firefox version because I hadn't yet cleared out this setting. I have determined that user.js is definitely being created/overwritten on start-up but I can't tell what's doing it.

Modified by boredtotears

الحل المُختار

"Something" got installed on that PC in the past that is reinstalling that user.js file, probably when your PC is turned on and Windows is booted up.

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.0; xs-16Qc283ciRs;CiSxfh;

Reading what is incorrect with that User Agent string; rv:2.0.1 = Gecko version of Firefox 2.0 from like 2006 - 2009 4.0.0 = from 2011 and either of those "tell" websites that you are using an old version xs-16Qc283ciRs;CiSxfh; = probably used to track users who inadvertently installed that Malware


You need to locate and remove whatever installed that garbage. View the Windows Control Panel > Add / Remove Programs to see what got installed that you don't need or don't use. Then uninstall the likely culprits.

Or do a search of the Windows Registry for that xs-16Qc283ciRs;CiSxfh; If you find it, remove it from the Registry.

Another solution would be to lock the 'user.js file after removing that line of code. With an empty & locked user.js file it can't be edited or reinstalled. IMO, that might be the most expedient and/or best solution for your problem.

Reinstalling Firefox or creating a new Profile won't do anything as ling as that crap is still hiding in Windows and the Registry. So don't even think of doing that; waste of time, IMO.

Read this answer in context 👍 0

All Replies (2)

more options

الحل المُختار

"Something" got installed on that PC in the past that is reinstalling that user.js file, probably when your PC is turned on and Windows is booted up.

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.0; xs-16Qc283ciRs;CiSxfh;

Reading what is incorrect with that User Agent string; rv:2.0.1 = Gecko version of Firefox 2.0 from like 2006 - 2009 4.0.0 = from 2011 and either of those "tell" websites that you are using an old version xs-16Qc283ciRs;CiSxfh; = probably used to track users who inadvertently installed that Malware


You need to locate and remove whatever installed that garbage. View the Windows Control Panel > Add / Remove Programs to see what got installed that you don't need or don't use. Then uninstall the likely culprits.

Or do a search of the Windows Registry for that xs-16Qc283ciRs;CiSxfh; If you find it, remove it from the Registry.

Another solution would be to lock the 'user.js file after removing that line of code. With an empty & locked user.js file it can't be edited or reinstalled. IMO, that might be the most expedient and/or best solution for your problem.

Reinstalling Firefox or creating a new Profile won't do anything as ling as that crap is still hiding in Windows and the Registry. So don't even think of doing that; waste of time, IMO.

more options

In addition to the built-in msconfig, Microsoft offers another tool for discovering (and turning off) what runs at startup:

Autoruns for Windows