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!
Comments(8)