Wpis z mikrobloga

@plnk: akat melinscript lepszy tego

javascript:function nextLetter(){return null==curNode?null:curIndex>=curNode.data.length&&(curNode=stack[++curNIndex],curIndex=-1,null==curNode)?null:(curIndex++,curIndex>=curNode.data.length?" ":curNode.data[curIndex])}function nextAfterWord(){var a=null;a:for(;;){do if(a=nextLetter(),null==a)return!1;while(whitespace.indexOf(a)!=-1);if(1==state)return state=2,!0;state=3;var b=curIndex;do{if(a=nextLetter(),null==a)return!1;if(1==state)continue a}while(whitespace.indexOf(a)==-1);return lastword=curNode.data.substr(b,curIndex-b),!0}}function putHere(a){null!=curNode&&(curNode.data=curNode.data.substr(0,curIndex)+(2!=state?" ":"")+a+(2==state?" ":"")+curNode.data.substr(curIndex),curIndex+=a.length+2)}function przelec(a){if("object"==typeof a&&"object"==typeof a.childNodes)for(var b=a.childNodes,c=0;c<b.length;c++){var d=b[c];1==d.nodeType&&"SCRIPT"!=d.tagName&&"IFRAME"!=d.tagName&&"PRE"!=d.tagName&&przelec(d),3==d.nodeType&&stack.push(d)}}var whitespace="/|.,!:;'\" \t\n\r",stack=new Array,curNIndex=0,curNode=null,curIndex=-1,state=1,lastword="";przelec(document.body),curNode=stack[0];for(var i=Math.floor(9*Math.random()),words=["elo","benc","#!$%@?","ogunie","awizisie","tego typu","akat"];nextAfterWord();)if(i--<=0){if("na"==lastword)continue;putHere(words[Math.round(Math.random()*(words.length-1))]);var i=2+Math.floor(8*Math.random()),i=2+Math.floor(8*Math.random())}