Search Support

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

how to find the option "Clear history when Firefox closes" from database

  • 6 ŋuɖoɖowo
  • 9 masɔmasɔ sia le wosi
  • 6 views
  • Nuɖoɖo mlɔetɔ cor-el

more options

Hello,

I want to check the "custom setting for history" option "Clear history when Firefox closes" silently, without open firefox browser. So kindly tell me the process to add data into sqlite database or any other file.

Thanks & Regards, Md Jiaul Islam

Hello, I want to check the "custom setting for history" option "Clear history when Firefox closes" silently, without open firefox browser. So kindly tell me the process to add data into sqlite database or any other file. Thanks & Regards, Md Jiaul Islam

All Replies (6)

more options

The settings for whether, when, and what to clear are stored in the prefs.js file. However, the actual purging is performed by Firefox; the database files cannot clean themselves...

more options

Hello jiaul, if you want the Settings for Clearing History window go from command line and write :

"C:\Program Files\Mozilla Firefox\firefox.exe" -chrome "chrome://browser/content/preferences/sanitize.xul"

if you want the Clear Recent History window go from command line again and write :

"C:\Program Files\Mozilla Firefox\firefox.exe" -chrome "chrome://browser/content/sanitize.xul"


thank you

more options

The prefs.js file in the Firefox profile folder stores prefs that have been modified from the default value.

  • privacy.clearOnShutdown.*

more options

Hello Sir,

I want to tick the checkbox of "Clear history when Firefox closes" programmatically (using VB 6.0/VBScript) and silently. So kindly tell me the process to do this.

Thanks & Regards, Md Jiaul Islam

more options

I suggest this process:

(1) Create a new Firefox profile. This article explains how: Profile Manager - Create, remove or switch Firefox profiles. (To avoid data loss, accept the default location for the new profile folder.)

(2) Start Firefox in the new profile and do nothing else but configure the history clearing settings you want.

(3) Open the profile folder using

Help > Troubleshooting Information > "Show Folder" button

(4) Exit Firefox and pause while files are updated. Then, in the profile folder, look at what Firefox has written to the prefs.js file. These are the settings you want.

(5) Craft your script to add the desired settings to a user.js file in the user's profile folder. Of course, knowing the location of the user's profile folder is a bit of a challenge, since the name is randomized... That I do not have any suggestion for, but it's not a new problem, so probably lots of suggestions in a web search.

more options

You should also be able to do this for all users via a mozilla.cfg file.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes