Last active
December 21, 2015 00:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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