Last active
June 17, 2025 16:50
-
-
Save uahim/f736794f7bb587db5a891c4c98dd9cd9 to your computer and use it in GitHub Desktop.
bookmarklet: save Netflix viewing history in a user-friendly form
This file contains hidden or 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
// save this as a bookmarklet, | |
// go to your viewing history ( via https://www.netflix.com/settings ) | |
// choose your profile and hit your bookmarklet | |
javascript: var mlnk =""; for (var i = 0, l = document.getElementsByTagName("ul")[3].getElementsByTagName("li").length -1; i < l; ++i) { var mydate = document.getElementsByClassName("date")[i].innerText.split("."); if (mydate[1] < 10) { month = "0"+mydate[1] } else { month = mydate[1] } mlnk += mydate[0] + "." + month + "." + mydate[2] + "\t"; mlnk += document.getElementsByClassName("title")[i].innerText + "\n"; } navigator.clipboard.writeText(mlnk); | |
// here's the text in human readable form: | |
javascript: | |
var mlnk = ""; | |
for (var i = 0, l = document.getElementsByTagName("ul")[3].getElementsByTagName("li").length - 1; i < l; ++i) { | |
var mydate = document.getElementsByClassName("date")[i].innerText.split("."); | |
if (mydate[1] < 10) { | |
month = "0" + mydate[1] | |
} else { | |
month = mydate[1] | |
} | |
mlnk += mydate[0] + "." + month + "." + mydate[2] + "\t"; | |
mlnk += document.getElementsByClassName("title")[i].innerText + "\n"; | |
} | |
navigator.clipboard.writeText(mlnk); | |
// also available as a userjs | |
// https://greasyfork.org/en/scripts/539767-netflix-history | |
// and from the console | |
// https://gist.github.com/uahim/f6d0b637efd1fe1d5183fef024eaffb3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment