Dometik is a Chrome extension that add new tools to the devtools to check if some elements on a page have a specific attribute.
-
A new Dometik panel where you can check elements data attribute over the entire page and export a csv report.
-
A new Dometik sidebar panel where you can check the data attribute for the current inspected element.
- Clone/download the github repository.
- In Chrome application, navigate to
chrome://extensions
. - Enable
Developer mode
on the top right corner. - Click on
Load the unpackaged extension
and select thedometik-chrome-extension
folder.
The extension is ready to be used, enjoy it !
Browse to the page you want to check, then open the chrome devtools.
Click on the Dometik
tab, then click on the Check page
button.
- All elements that have the defined html attribute (cf: Configuration) are bordered in green.
- All elements that should have the html attribute and are not, are bordered in red.
Now, you can see all elements attribute details in the Dometik
panel.
Click on an element in the table to inspect it.
To acces the extension configuration, click on the extension icon (on the top right window) and click on Options
.
These options can help you refine the checked elements.
default: body
The css selector of the element that contains all the elements that need to be checked.
default: a, button, form, [data-lf-tracking]
The list of css selectors elements that need to be checked.
default: data-lf-tracking
The html attribute that contains the data you want to check.
default: bind, action, category, label
If the content of the attribute should be a JSON object, define here the list of properties it should have.
- Script to clear classes and attributes added by the content script
- Code refactoring
- Improve UX/UI
This project is MIT licensed.