Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a maximum CSS selector #23

Open
JosXa opened this issue Mar 9, 2016 · 1 comment
Open

Generate a maximum CSS selector #23

JosXa opened this issue Mar 9, 2016 · 1 comment

Comments

@JosXa
Copy link

JosXa commented Mar 9, 2016

Hello Guys, awesome work on your tool!
It came to me though that I am missing out on the feature of being able to select not only the minimal DOM element but also the exact one, determined by the containing text and type.
This would be great for a plugin that I am working on which lets a chrome user add/attach a hotkey to an arbitrary button or link on a specified website.
Of course i can add all the required selectors to resolve the specific element by hand but it would be great if I had a smart assistant library that can do that for me.
Any thoughts on this?

Cheers, keep it up!

@cantino
Copy link
Owner

cantino commented Mar 12, 2016

Hey @Rostgnom, that's a cool idea, and we'd certainly be open to a pull request. :)

You can also do this in the Chrome web inspector. Inspect an element, right click, and select Copy -> Copy selector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@cantino @JosXa and others