Skip to content

Instantly share code, notes, and snippets.

@Xevion
Created August 15, 2020 01:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xevion/4f164ed20c5456afd240240f6127762c to your computer and use it in GitHub Desktop.
Save Xevion/4f164ed20c5456afd240240f6127762c to your computer and use it in GitHub Desktop.
let prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService);
let autocomplete = 'browser.urlbar.autoFill';
let history = 'browser.urlbar.suggest.history';
prefs.setBoolPref(history, !prefs.getBoolPref(history));
prefs.setBoolPref(autocomplete, !prefs.getBoolPref(autocomplete));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment