Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

uBlock Origin supports XPath

    ##:xpath(//*[@role="article"][descendant::*[@aria-label="Verified account"]])
Unfortunately no document.queryXPathAll but is easy to shim [2]. It is great technology, sadly not known.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/:has

[2] http://sergeykish.com/web-api-element-prototype-queryxpathal...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: