Skip to content

Instantly share code, notes, and snippets.

@briandunn
Created June 16, 2011 22:26
Show Gist options
  • Save briandunn/1030441 to your computer and use it in GitHub Desktop.
Save briandunn/1030441 to your computer and use it in GitHub Desktop.
Insert some meaty dummy text
(function(){
var head = document.getElementsByTagName('head')[0],
script = document.createElement('script');
script.type='text/javascript';
script.src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js";
script.onload = function() {
var $active = $(document.activeElement)
$active.css({cursor: 'wait'})
$.getScript('http://baconipsum.com/wp-includes/js/l10n.js', function() {
$.get('http://baconipsum.com/?paras=1&type=all-meat', function(data) {
$active.val($active.val() + $(data).find("#content p").first().text())
$active.css({cursor: 'auto'})
})
})
}
head.appendChild(script)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment