Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

All domains visited by Chrome

View domains.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#some bash first
#Get Chrome history file here: http://www.chromium.org/user-experience/user-data-directory
#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 = File.open('./history_export.txt')
e = f.each_line.lazy.map 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?
s
end.to_a.compact.sort.uniq
e.each(&method(:puts))
puts e.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.