About Content Filtering in Chrome and Firefox

In Chrome or Firefox console, you can filter the content of the current page (XML or HTML) with XPath selectors.

For example to get the titles of all <h2> you can do this:

1
$x("//h2/text()").map(el => el.wholeText);

Tips and Tricks Development Chrome Firefox