Alt+click any element to generate its optimum jquery selector path.

Latest Version

Version
2.3
Update
February 23, 2016
Size
50.32KiB
Developer
Category
Users
1,000+
Rating
2.84615 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
See more

Selectify Extension

If you are writing jQuery, you frequently decide and write the optimum jquery selector for your need. However, the rules for optimizing a jQuery selector are relatively easy and can be automated. That's what this extension is for. Instead of having to step through the DOM, find the ID which could be anywhere, and try to remember again exactly what the rules are for optimizing the jQuery selector, this tool builds the selector and copies it to your clipboard. Done! Voila! Additionally, the tool tells you how many elements on the page that selector calls so you instantly know whether the selector is unique (calls only one element) or not (calls many elements).

The readme.md file delineates the logic used. Primary source behind the logic is: https://learn.jquery.com/performance/optimize-selectors/
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Selectify", "description": "Alt+click any element to generate its optimum jquery selector path.", "version": "2.3", "author": "Amanda Olsen", "minimum_chrome_version": "10.0", "icons": { \t\t"16": "images/icon16.png", \t\t"48": "images/icon48.png", "128": "images/icon128.png" }, "web_accessible_resources": [ "images/*.png" ], "content_scripts" : [\t{\t\t"matches": \t["http://*/*", "https://*/*"],\t\t"css":\t\t["main.css"],\t\t"js" : \t\t["jquery-1.11.3.min.js", "main.js"]\t} ]}
Read more