Shikari Shikari is a library that provides a way to generate a CSS selector of a given DOM element Usage Create a Shikari instance and call the .getSelector() method, like shown below: var shikari = new Shikari(); shikari.getCssSelector(document, element);