/* * After the Deadline Bookmarklet Source Code * http://www.afterthedeadline.com/download.slp?platform=Bookmarklet */ (function() { if (typeof AtD != 'undefined') return; var loadresource = function(tag, link, type, breakc) { var d = new Date(); var breakCache = breakc ? '?ver=' + d.getMonth() + '.' + d.getYear() + '.3' : ''; var res = document.createElement(tag); res.type = type; if (tag == 'link') { res.href = link + breakCache; res.rel = 'stylesheet'; } else { res.src = link + breakCache; } document.getElementsByTagName('head')[0].appendChild(res); }; if (typeof jQuery == 'undefined') { loadresource('SCRIPT', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js', 'text/javascript', false); setTimeout(function() { if (typeof jQuery != 'undefined') jQuery.noConflict(); else setTimeout(this, 1000); }, 1000); } loadresource('SCRIPT', 'http://static.afterthedeadline.com/atd-jquery/scripts/jquery.atd.textarea.js', 'text/javascript', true); loadresource('SCRIPT', 'http://static.afterthedeadline.com/atd-jquery/scripts/csshttprequest.js', 'text/javascript', true); loadresource('link', 'http://static.afterthedeadline.com/atd-jquery/css/atd.css', 'text/css', true); setTimeout(function() { if (typeof AtD != 'undefined' && typeof jQuery != 'undefined') { AtD.rpc_css = 'http://www.polishmywriting.com/bookmarklet/proxycss.php?data='; jQuery('textarea').addProofreader(); } else { setTimeout(this, 1000); } }, 1000); })()