Free tool
CSS selector tester
Paste HTML and a selector to see exactly what it matches, before you put it in a userscript or an extension.
How it works
From markup to a working selector in three steps.
- 01
Paste the HTML
Copy it from Chrome's Elements panel, once the page has finished loading.
- 02
Type a selector
The count and the highlighted preview update as you type.
- 03
Tighten it
Adjust until it matches exactly the elements you want, and nothing else.
FAQ
CSS selectors, explained.
Rather not write it by hand?
ScriptPanda writes the userscript from a description. Open it on the page, say what you want, and it builds the tool into the page, then fixes it when the site changes.
Try ScriptPanda