You can get data about your Google queries from the Firefox history database even when you are not using Google history, for instance using the following (no guarantees on sanity/completeness, assumes you are on Unix with necessary utilities installed, have only one profile folder, etc.):