Silly User Script

I just wrote the most stupid user script ever. I noticed yesterday that my Masked Input Plugin for jQuery has over a quarter million downloads. I've never stumbled on a site and noticed my plugin being used, so I decided to write this user script to let me know. Maybe one day it will alert me and I'll get a nice surprise.

// ==UserScript==
// @name	My jQuery Plugin Detection
// ==/UserScript==

window.addEventListener("load", function(e) {
	if(location.hostname != 'localhost' && this.jQuery){
		if(this.jQuery.fn.mask)
			alert("masked input!");
		if(this.jQuery.fn.Watermark)
			alert("watermark!");
	}
}, false);

Also, if you are using any of my plugins on a public site, I'd love to know what some of them are!

8 Comments so far

  1. josh @ November 3rd, 2009

    I’ll be damned. It looks like twitter is using the watermark plugin somewhere. I can’t see where it’s being used, but the script is definitely included. Neat!

  2. NickV @ November 3rd, 2009

    I use masked input on an internal trouble ticket project with plans to use on an unfinished public CMS project. No link or name yet. Both are ASP.NET.

  3. Harro @ November 4th, 2009

    I downloaded it, but haven’t used it in production yet.

    If we use it for something that does go live I’ll let you know.

  4. Mihai @ November 17th, 2009

    I’m using the watermark plugin in a crazy issue tracker I’m developing for school.

  5. Philip @ November 25th, 2009

    I was using masked input on a project. Unfortunately the time I had available to work on the project was not enough to keep up with the clients demands.

    Definitely very cool. Great work.

  6. Jeff @ January 18th, 2010

    I’m using it on our site when collecting user contact details. Thousands of users have used it and not even known.

  7. Carlos Mora @ March 3rd, 2010

    over a quarter million downloads! Something to be proud! Congrats!

    I’m learning jquery and web devel stuff, coming from desktop dev, and your plugin is absolutly essential. Thanks.

  8. Jedidja @ March 6th, 2010

    I just came across it today – awesome stuff!

Leave a reply