Skip to content

Instantly share code, notes, and snippets.

@mohsin
Created August 2, 2020 16:27
Show Gist options
  • Save mohsin/45a9fc09b897d28588e81344a0f2be1d to your computer and use it in GitHub Desktop.
Save mohsin/45a9fc09b897d28588e81344a0f2be1d to your computer and use it in GitHub Desktop.
EZTV filter down top shows by rating
// Visit https://eztv.io/showlist/rating/ and sort by rating. Then execute code to remove the ones which have votes lesser than N
// Here N is 100000
$('html body div#header_holder table.forum_header_border tbody tr td.forum_thread_post span').filter((id, node) => {
return parseInt(String(node.firstChild.nodeValue).replace(',','').replace(/\((\d+) votes\)/, '$1'), 10) < 100000;
}).each((id, node) => {
node.parentNode.parentNode.style.display = 'none';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment