Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var newBody = "YOUR NEW BODY CONTENT";
var keep = $('#olark, #habla_beta_container_do_not_rely_on_div_classes_or_names')
.add($('iframe[src*=olark]').parent());
$('body').children().not(keep).remove();
$('body').prepend(newBody);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment