/*
* @title PatatapRecorder
* @description Run this bookmarklet => Click [OK] => Play Patatap => Push [Enter] key => Copy the text for PatatapPlayer
* @include http://www.patatap.com/
* @license MIT License
* @javascript_url
* @private
*/
(function(w,n,s,t,f,i){alert(n+': Press [Enter] to stop recording');i=setInterval(function(){s+='&'},t);f=function(e,k){k=e.keyCode;if(k==13){prompt(n+': PatatapText',s.replace(/(^&+|&+$)/g,'').replace(/&+/g,function(s){return '&'+s.split('').length}));$(w).unbind('keydown',f);clearInterval(i)}else if(k==32||(64<k&&k<91)){s+=String.fromCharCode(k)}return false};$(w).keydown(f)})(window,'PatatapRecorder','',50)