In: , , , ,
On: 2012 / 12 / 20 Viewed: times
Shorter URL for this post: http://ozh.in/vs

I was having a look at my Profile page on WordPress.org and wondered how many downloads all my plugins had. Start Menu, Accessories, Calculat.. HEY? What am I doing here?

Bookmarklet Fun

The following Javascript snippet will do the job for you:

javascript
< view plain text >
  1. (function () {
  2.     var total = 0,
  3.         count = 0;
  4.     jQuery('p.downloads').each(function (i, e) {
  5.         count++;
  6.         total += parseInt(jQuery(e).text().replace(/,/g, ''));
  7.     });
  8.     total = total.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  9.     alert(count + " plugins and " + total + " downloads");
  10. })();

Which makes that bookmarklet: Plugin Count. Drag to your bookmarks or right click and bookmark it, head to your wp.org profile page and trigger the bookmarklet!

plugincount

More Bragginess: Tweet It!

Yeah, a humble alert box won't make the world and your Mom proud of you, right? Tweet Plugin Count!

FYI

Bookmarklets are fun. Two tools will help you:

Have fun!

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/vs

Metastuff

This entry "Fun Bookmarklet: wp.org Plugin and Download Count" was posted on 20/12/2012 at 6:07 pm and is tagged with , , , ,
Watch this discussion : Comments RSS 2.0.

One Reply

  1. 1
    Vladimir Prelovac Republic of Serbia »
    thought, on 21/Mar/13 at 9:50 am # :

    Very clever!

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Read more ?