Created
August 2, 2020 16:27
-
-
Save mohsin/45a9fc09b897d28588e81344a0f2be1d to your computer and use it in GitHub Desktop.
EZTV filter down top shows by rating
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
// 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