PatatapRecorder

    @@ -1,6 +1,6 @@ /* * @title PatatapRecorder - * @description Run this bookmarklet => Click [OK] => Play Patatap => Push [Enter] key => Copy the text for PatatapPlayer + * @description Run this bookmarklet at http://www.patatap.com/ => Click [OK] => Play Patatap => Push [Enter] key => Copy the text for PatatapPlayer * @include http://www.patatap.com/ * @license MIT License * @javascript_url
  • /*
     * @title PatatapRecorder
     * @description Run this bookmarklet at http://www.patatap.com/ => Click [OK] => Play Patatap => Push [Enter] key => Copy the text for PatatapPlayer
     * @include http://www.patatap.com/
     * @license MIT License
     * @javascript_url
     */
    
    (function(w,n,s,t,f,u,i){if(!location.href.match(/^https?:\/\/www\.patatap\.com/)){prompt('Error: Plase run at','http://www.patatap.com/');return}if(w._pr){w._pr();w._pr=0;return}alert(n+': Press [Enter] or rerun this to stop recording');i=setInterval(function(){s+='&'},t);w._pr=u=function(){prompt(n+': PatatapText',s.replace(/(^&+|&+$)/g,'').replace(/&+/g,function(s){return '&'+s.split('').length}));clearInterval(i);$(w).unbind('keydown',f);return false};f=function(e,k){k=e.keyCode;if(k==13){u()}else if(k==32||(64<k&&k<91)){s+=String.fromCharCode(k)}return false};$(w).keydown(f)})(window,'PatatapRecorder','',50)
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2014/03/29 10:20:32 - 2014-03-29
  2. 2014/03/28 18:38:45 - 2014-03-28
  3. 2014/03/28 18:38:33 - 2014-03-28
  4. 2014/03/28 14:15:42 - 2014-03-28
  5. 2014/03/28 14:13:43 - 2014-03-28
  6. 2014/03/28 12:46:44 - 2014-03-28
  7. 2014/03/28 12:44:35 - 2014-03-28