Chrome

[google.com] chrome-devtools

const json = fs.readFileSync(
  path.join(homedir, '.config/google-chrome/Default/Preferences'),
  'utf-8'
);
const preferences = JSON.parse(json);
console.log(Object.keys(preferences.devtools.preferences));

disable session restore

vi .config/google-chrome/Default/Preferences
// "exit_type": "none",
sudo chmod -w .config/google-chrome/Default/Preferences

Firefox

[developer.mozilla.org] docs/Tools

[developer.mozilla.org] Filtering_requests