<script>
// Automatically embed pastes from http://thepb.in/
kiwi.addMediaMessageType(function(url) {
     return /https?:\/\/((.+)\.)?thepb\.in(\/private)?\/[a-z0-9]+\/?$/gi.test(url);
},function (url) {
     var id = Math.random().toString(30).split('.')[1].slice(0,10)
     var div = document.createElement('div');
     div.style = 'overflow: auto; width: 700px; height: 270px;'
     div.id = 'tpb-'+id;
     var script = document.createElement('script');
     script.type = 'text/javascript';
     script.src = url+'.kiwi?div='+id;
     script.id = 'scp-'+id;
     div.appendChild(script);
     return div;
});
function ThePBKiwi (str,id) {
         var old = null;
         if ((old = document.getElementById('scp-'+id))) {
            old.parentNode.removeChild(old);
         };
         var elm = null;
         if ((elm = document.getElementById('tpb-'+id))) {
            elm.innerHTML += str;
         };
};
</script>

<script type="text/javascript">
// Automatically embed pastes from http://thepb.in/
kiwi.addMediaMessageType(function(url) {
     return /^https?:\/\/((.+)\.)?thepb\.in(\/private)?\/[a-z0-9]+\/?$/i.test(url);
},function (url) {
    $el = $("<iframe width=\"100%\" height=\"100%\" frameBorder=\"0\" src=\""+url+".kiwi\"></iframe>");
    $el.load(function() {
        $el.css({margin: 'none', padding: 'none'});
        $el.parent().css({width:'90%', height: '432px', overflow: 'hidden', padding: '0', 'box-sizing':'border-box'});
    });
    return $el;
});
</script>

Switch from script tags to an iframe.
Switch from script tags to an iframe.
