Skip to content

Instantly share code, notes, and snippets.

@pdubroy
Last active December 21, 2015 00:39
Show Gist options
  • Save pdubroy/6222091 to your computer and use it in GitHub Desktop.
Save pdubroy/6222091 to your computer and use it in GitHub Desktop.
Script to run in the dev tools console to collect history entries from the Chrome history page.
var visits = [];
var count = 0;
(function getVisits() {
visits = visits.concat(Array.prototype.slice.call(document.querySelectorAll('.title a')));
console.log(visits.length + ' visits');
if (++count < 10) setTimeout(getVisits, 2000); // Stop after 10 pages.
$('older-button').click();
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment