Count command for Ubiquity
(This is primarily a blog post to test out Sandro’s plugin for embedding Ubiquity commands in WordPress. If you don’t see the “subscribe to command” come up, make sure you’re looking at the single page view.)
A while back I created a count command for Ubiquity to count HTML elements on a page, so I’ll share it here. The idea is super simple: select some text on your page and execute count p to get the number of paragraphs, or count a to get the number of links, or count tr to get the number of table rows. This is super useful when reading articles with charts or lists online and you want to know how many there are without doing something like copy-pasting into Excel.
The count command is built using jQuery so it can even understand targets like p.class or a[href=...]. Give it a try! ^^
Related posts:
- Friendlier command feed subscription
- selecting from Ubiquity
- Rolling out the Roles
- Talking Ubiquity in Japan: 拡張機能勉強会にて発表
- Ubiquity Commands by The Numbers
Related posts brought to you by Yet Another Related Posts Plugin.
Tags: code, command, JavaScript, jQuery, Mozilla Planet, plugin, ubiquity, WordPress
If you enjoyed this post, make sure you subscribe to my RSS feed (optionally with tweets from my Twitter)!