How to Export Google Search History - google-chrome

Looks like Google has stopped supporting "Download Searches" button as mentioned here: https://support.google.com/websearch/answer/6068625?hl=en . One option is to get history from Google Chrome using something like this https://gist.github.com/evidanary/d02d89c632530878163f256fe993d5a4 . But the history in Chrome is not complete and only goes back for a few months(guessing thats when I upgraded OS).
Does anyone know how to export the search history from beginning of time?

Steps for any OS:
Type about:version in the Chrome address bar and press Enter (also works for Chromium, Iridium, Brave, etc).
Copy the path listed under Profile Path and close Chrome.
Navigate to the profile folder and locate the file named History.
The file is in the SQLite3 format and can be opened with any of the available GUIs, for example DB Browser for SQLite which is cross-platform, open-source and actively maintained.
From the SQLite tables select the urls table to see all visited URLs. You can also use File > Export to get them as a CSV (Excel), JSON or SQL file.
If you are using multiple Chrome profiles then repeat 1-5 for each profile.

I stumbled upon this when I had to migrate data from one machine to another.
Google searches in chrome are saved along with chrome history. I migrated the complete chrome history and could get the autocomplete results for my past searches.
The search history for chrome is saved in the location
(~UserProfile)\AppData\Local\Google\Chrome\User Data\Default
Look for a file History inside this folder. This is the complete chrome history (or from the time you last cleared chrome history).

Related

How to import the sessions list from Session Manager extension on chrome

I installed Chrome in a new computer and I cant get my list of tabs from the Session Manager extension.
There's no easy export-import option in that manager...How can I get back my list of tabs?
If you are using Google Chrome's Session Manager extension and you move to another computer, you cant easily export and import your session list.
I just found out (by trying, couldn't find the answer in google) that you can copy the contents of the folder:
..\Users\\AppData\Local\Google\Chrome\User Data\Default\Local Storage\leveldb
into the same folder in your new computer and the list of tabs will appear the new computer's Chrome's Session Manager.
Just wanted to post this here if someone will google for it...
Maybe it's time to move to another proper extension...:)

Disable update of specific chrome extension

With recent news of adblock being sold to some unknown company, first thing i want to do is disable any possible update for that extension.
I've found number of questions but they are outdated. So chrome pros please tell how do we disable a specific plugin? and please take into consideration that there are many instances which synchronize it is important that the change gets synchronized to other computers, if it is not how do we do that?.
And a secondary question : where do we find sources of already installed extension? so that we could later pack and run it?
Chrome does not offer a way of disabling an update for a specific extension.
If you want to make sure that you run some specific version of an extension, you could try any of the following options:
Read-only extension folder
Go to the directory containing the extension, and mark the directory as read-only. To find that directory, visit chrome://version and look at the path at "Profile Path". The extension will then be at [value of Profile path]/Extensions/[32-character extension id].
Download the source code
Download the source code of the extension, and load it as an unpacked extension (or upload it to the Chrome Web store, and then install it).
There are several ways to get the source code (including just copying it from the directory as I mentioned at the previous step).
If you want to download a Chrome extension without installing it (e.g. because the new version contains unwanted "features" that you want to remove), then you could use my Chrome extension source viewer to download the code.
Some extensions expect to be run with a specific extension ID. You can forge this extension ID if you load the extension in unpacked mode (but you cannot upload the extension to the CWS if you do that). For instructions on fixing the extension ID, see How to change chrome packaged app id Or Why do we need key field in the manifest.json?.

Open up .MHT link in excel

So I have a local sever website that we have a status board at my command center (military). We are displaying an excel spreadsheet on this website as a .mht
I want to create a button to edit this (because the people I work with cannot figure out how to right click open with excel)
Basically what I would love to see is a button called edit that would launch excel and open the .mht file in excel.
Is this possible?
As .mht is only supported by Internet Explorer I guess your users are using Internet Explorer.
For security reasons it is not easily possible to run code on local computer pushed to the client from webserver - without the user seeing questions like where do you want to save the file, do you trust the file etc etc.
I would search for answer in following directions:
1 Internet Explorer can run nearly any code with the HTML user interface through the .hta file format - may be outdated today
2 Editing spreadsheet documents directly from the browser is nicely supported if you host the Excel files on Google Docs
3 Similar easy to use online spreadsheet editing should be possible through Microsoft's services OneDrive and Office Online

How to remember last download location when calling chrome.downloads.download? (Extension Developer)

The default behavior for chrome.downloads.download is to download to the default download folder. It doesn't remember it if you change the folder. Can we save the download-to location for the next call-out?
References: https://developer.chrome.com/extensions/downloads
It's concerning that Chrome actually doesn't provide the ability for an extension to get the last download path. Some say, it's due to security concern and others say, there is no significant need to have the API available to users.
You also cannot store the download path in your extension because Chrome doesn't let you get the selected download folder. I hope Google provides us with the either of these features later.
This is not a supported feature, according to this Chromium discussion.
Summary:
If you specify a filename, it's never possible to save outside of ~/Downloads (this is a bummer, for me)
You should be able to manually implement something (in a subfolder only) using the id returned from Chrome.downloads.download
A few quotes I like (edited for brevity and politeness):
Would like a download option to choose recent download folder. Would be good to remember last download location per website, like you other settings.
Seems reasonable.
Chrome does remember the last chosen directory if no filename is specified to downloads.download with Save As... Given how Save As works without specifying a filename, my intuition would be it would work the same with a filename... but it doesn't.
That one is interesting. So it kind of supports it already. There's no security concern with saving outside of Downloads.
I have just been able to restore the "remember last download location" functionality, which used to work on my previous machine, in a new install by disabling extensions and Chrome apps provided by Google. This is what I have turned off:
Extension: Google Docs Offline
Chrome Apps: Docs, Sheets, Slides
I haven't tried to narrow down which of these have been the culprit, or if any other extensions (I have a bunch) have played a role. So YMMV. Good luck :)
SOLVED. Very simple way: Insert a USB-drive or SD-card. Go to chrome settings, and specify this drive as the default download location.
Remove the drive/SD-card. Download something - the first time you do it, Chrome will offer to save to your user document folder, but instead, you save it to whereever you want.
This location will be remembered next time. Voila. So easy.
In fact, you can save previous the download location.
If you do a clean install, first of everything, change the download settings to "ask every time". It is very important not to click the text box where you can specify one download location (if you click there just once, you need a clean install again).
Chrome will then bring up the download window with your last save location.
Furthermore, you should uncheck the "settings" in the sync preferences because it will break every time you sync your settings to a new browser.

Can one configure Chrome to offer opening downloads in suitable applications?

I recently made Google Chrome my default browser (mainly due to its bookmark and preferences syncing capabilities across multiple systems).
One thing I find increasingly annoying with it though is, that Chrome does not allow to directly open a downloaded file in an appropriate application!
In IE I was us to, that, when I clicked onto a link pointing to some document, e.g. a spreadsheet, to being asked, whether I wanted to save this document to a local file or to directly open it (in Excel in this example). This worked with all kinds of registered applications but also other formats, e.g. email addresses (mailto:-links) or Calendar entries (.ics-files) which directly opened Outlook's new email dialog with the email-address already filled int or created a new calendar entry from the .ics file, resp.
In Chrome one can only save such docs to a local file and then needs to locate that and has to open it manually. I find this always most cumbersome! Is there some plugin that allows to bring back the convenience I was used to?
And to spare me the usual comments on such feature requests right away: Yes, I am aware, that this is a potential security issue, if one opens docs from dubious sources, etc. I know, that one needs to understand what one is doing in such situations, but I think I do!
Click the little arrow beside the file, which is being downloaded and choose Always open files of this type. That will make it open automatically in the program the file type has been associated with in Windows after it finishes downloading.