Skip to content

Instantly share code, notes, and snippets.

@bgrawi
Created January 16, 2016 05:29
Show Gist options
  • Save bgrawi/56ca0bf3a1f86be72051 to your computer and use it in GitHub Desktop.
Save bgrawi/56ca0bf3a1f86be72051 to your computer and use it in GitHub Desktop.
Bookmarklet that scrapes your history page and extracts the relevant data into json
JSON.stringify((Array.prototype.slice.call(document.querySelector("ul.retable").children)).map(function(elm) { return {date: elm.querySelector(".date").textContent, seriesId: elm.getAttribute("data-series"), movieId: elm.getAttribute("data-movieid"), title: elm.querySelector(".title").textContent}; }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment