DOM inspector (original) (raw)

uBlock Origin (uBO) comes with its own custom DOM inspector, to assist in the creation of cosmetic filters, as a complementary tool to the element picker and the logger. It can be accessed by clicking the </> icon in the logger:

DOM inspector in action

A custom DOM inspector -- rather than creating hooks into the browser's own DOM inspector -- has benefits:

Whereas the element picker is useful to interactively create cosmetic filters through point-and-click, the DOM inspector is useful to create cosmetic filters through the internal structure of the document in your browser. For instance this allows:

Creating cosmetic filter exception: