// These instructions for exporting Netflix's My List, Watch History, and Ratings worked for each profile on August 4, 2019.
// 1) Go to https://www.netflix.com/browse/my-list and use https://addons.mozilla.org/firefox/addon/netflix-list-exporter/ to copy.
// 2) Go to https://help.netflix.com/en/node/101917 and follow instructions to download CSV of Watch History.
// 3) Use the snippet below in the browser's console at https://www.netflix.com/MoviesYouveSeen, then copy and paste to wherever you wish.
// Code was altered from https://www.coollector.com/netflix_import.html, but I haven't ever used their software.
// 4) Go to https://www.netflix.com/cancelplan and cancel (if that's why you're doing all this):
// "Restart your membership anytime. Your viewing preferences and account details will be saved for 10 months."
var result = '';
var $ = jQuery;
$( '.retableRow' ).each( function ( i, el ) {
if ( $( el ).find( '.rated' ).hasClass( 'rated-up' ) ) {
result += '[+] ';
} else if ( $( el ).find( '.rated' ).hasClass( 'rated-down' ) ) {
result += '[-] ';
} else {
result += '[' + $( el ).find( '.rating .personal.icon-star' ).length + '] ';
}
result += '\t' + $( el ).find( '.title' ).text() + '\t';
result += 'https://www.netflix.com' + $( el ).find( '.title a' ).attr( 'href' ) + '\n';
} );
console.log( result );