In: , , , ,
On: 2012 / 12 / 20 Viewed: times
Shorter URL for this post:

I was having a look at my Profile page on 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:

< 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 profile page and trigger the bookmarklet!


More Bragginess: Tweet It!

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


Bookmarklets are fun. Two tools will help you:

Have fun!

Shorter URL

Want to share or tweet this post? Please use this short URL:


This entry "Fun Bookmarklet: 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 »
    commented, 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 ?