User:Curb Safe Charmer/FindBlankStaleDrafts.js

$(document).ready( function {

if (isEmptyDraft("User:Keegan_Bost/sandbox/Keegan_Bost")) {	alert("Contains empty draft template"); } } );

function isEmptyDraft(article) { $.get("/wiki/" + article, function(data) {

var html = $.parseHTML(data); var foo = $(html).find('#mw-content-text:contains("new article content ...")');

return (foo.length !==0);

}

); }