Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
All domains visited by Chrome
#some bash first
#Get Chrome history file here:
#sqlite3 /PATH/TO/History "select datetime(last_visit_time/1000000-11644473600,'unixepoch'),url from urls order by last_visit_time desc" > history_export.txt
f ='./history_export.txt')
e = do |l|
next if l =~ /\|file:/
next if l =~ /\|chrome-extension:/
next if l =~ /\|mailto:/
s = l[%r[\|https?://(.*)],1].to_s[%r[(.*?)/],1]
raise l if s.nil?
puts e.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment