#!/bin/sh -e
history=$HOME/.config/mychrome/Default/History
if [ ! -e "$history" ]; then
	history=$HOME/.config/mychrome/Default/History
fi

tmp=$history.$$.tmp
cp "$history" "$tmp"
query="select url from urls order by last_visit_time desc;"
sqlite3 "$tmp" "$query"
rm -f "$tmp"
