blog

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:

  1. Friendlier command feed subscription
  2. selecting from Ubiquity
  3. Rolling out the Roles
  4. Talking Ubiquity in Japan: 拡張機能勉強会にて発表
  5. Ubiquity Commands by The Numbers

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , , , ,

If you enjoyed this post, make sure you subscribe to my RSS feed (optionally with tweets from my Twitter)!

Leave a Reply

mitcho.com uses Markdown with Smarty Pants for simple, lightweight markup.


© 2006–2011 mitcho (Michael 芳貴 Erlewine).
Proudly powered by WordPress on Media Temple.
The views expressed on these pages are mine alone and do not
reflect those of my employers and clients, past and present.