Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// inject css rules bookmarklet source // by paul irish. public domain code. // http://paulirish.com/2008/bookmarklet-inject-new-css-rules/ (function (){ var newcss = window.prompt('new css rule:'); if ('\v'=='v') /* ie only */ { document.createStyleSheet().cssText = newcss; } else { var tag = document.createElement('style'); tag.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(tag); tag[ (typeof document.body.style.WebkitAppearance=='string') /* webkit only */ ? 'innerText' : 'innerHTML'] = newcss; } })();
This paste will be private.
From the Design Piracy series on my blog: