Skip to content

Instantly share code, notes, and snippets.

@mohamedmansour
Created March 20, 2011 19:48
Show Gist options
  • Save mohamedmansour/878614 to your computer and use it in GitHub Desktop.
Save mohamedmansour/878614 to your computer and use it in GitHub Desktop.
Total number of hours watched on Netflix
var timings = document.querySelectorAll("#rhtable tr > td:nth-of-type(4)");
var totalHours = 0;
for (var i = 0; i < timings.length; i++) {
var timing = timings[i].innerHTML.split(":");
totalHours += parseFloat(timing[0]) + (parseFloat(timing[1]) / 60) + (parseFloat(timing[1]) / 3600);
}
alert("Hours watched: " + totalHours);
@mohamedmansour
Copy link
Author

Visit https://ca.netflix.com/WiViewingActivity?all=true to use the script above as a bookmarklet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment