Skip to content

Instantly share code, notes, and snippets.

@GiancarloGomez
Created June 12, 2018 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GiancarloGomez/f26e057a5385b8090cd6cf4d3ba3e261 to your computer and use it in GitHub Desktop.
Save GiancarloGomez/f26e057a5385b8090cd6cf4d3ba3e261 to your computer and use it in GitHub Desktop.
Netflix History Delete
let _year = new Date().getYear()-100;
let _regex = new RegExp(`/${_year}$`);
document.querySelectorAll('.retableRow').forEach(a => {
let _date = a.querySelector('.date');
if( !_regex.test(_date.innerText) )
a.querySelector('.deleteBtn').click()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment