I want to make a script that will parse the html of the current page, filtering out certain div classes and for now to write their contents to a file or remove everything else but them on the page.
I guess the best way would be to run a Tampermonkey script on that page. I looked on http://userscripts-mirror.org/ but didn't find a script like this.
Is there a javascript html parser that can run on chrome?
Something that could work like this maybe?
var divClasses = parseCurrentPage("div class x");
// then do something on divClasses and then show only them