Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
var ExternalScript = { include: function( src ){ this._remove(src); var s = document.createNode('script'); s.setAttribute('type', 'text/javascript'); s.setAttribute('src', src); $$('html head').first.appendChild(s); }, _remove: function(src){ $$( 'script[src]' ).each( function( s ){ if ( s.src.indexOf( src ) > -1 ) s.parentNode.removeChild( s ); }); } }
This paste will be private.
From the Design Piracy series on my blog: