Chrome Historian
A better wrapper for the Chrome History API that also merges in downloads from the Chrome Download API.
This is the secret sauce behind Better History
Managing a day's history
The Chrome History API has been known to return visits that do not fall between the requested dates and visits that are out of order. Querying a day's history via Chrome Historian will guarantee all returned visits occured on the requested day and are in descending order.
dayHistorian = dayHistorianfetch if visits consolelogvisits else consolelog'Feature is not supported in your browser version' dayHistoriandestroy dayHistoriandestroyHour22
Searching history
The Chrome History API has been known to return very generous matches (not in a good way). Searching via Chrome Historian will guarantee all returned visits have a title or url that partially matches the query.
searchHistorian = 'gmail' searchHistorianfetch maxResults: 10000 consolelogvisits # The search historian caches the last search via chrome's local storage api searchHistorianexpireCache # It's important to use these to delete because they both update the # previous search cache to reflect the removals searchHistoriandeleteUrl searchHistoriandestroy
Device Sessions
Easily interaction with Device browser sessions that are logged into the same Google account
historian = historianfetch if devices consolelogdevices # ['Nexus 5', 'Desktop', 'Nexus 7'] else consolelog'Feature is not supported in your browser version' # ...a bit later if devices historianfetchSessionsdevices0 consolelogsessions # [{ # sessionId: 'session_sync43908482591051-257446.1' # sites: [] # }]
Simple deleting
HistoriandeleteUrl'http://google.com' HistoriandeleteDownload'http://google.com/file.zip' HistoriandeleteRange startTime: 'Aug 20, 2014' endTime: 'Aug 30, 2014' HistoriandeleteAll