say youpy

    @@ -10,7 +10,7 @@ var hoge=Array.prototype.slice.call(document.querySelectorAll('pre .line')); var youpy=hoge[Math.floor(Math.random() * hoge.length)].textContent.replace(/[○●×]+/g, who); var url='http://twitter.com/?status='+encodeURIComponent(youpy); - if(prompt('youpy',youpy)){ + if(prompt('say youpy!',youpy)){ window.open(url); } else{
  • /*
     * @title say youpy
     * @include https://gist.github.com/671714
     * @license MIT License
     * @require 
     */
    
    (function(){
      var who='youpy';
      var hoge=Array.prototype.slice.call(document.querySelectorAll('pre .line'));
      var youpy=hoge[Math.floor(Math.random() * hoge.length)].textContent.replace(/[○●×]+/g, who);
      var url='http://twitter.com/?status='+encodeURIComponent(youpy);
      if(prompt('say youpy!',youpy)){
        window.open(url);
      }
      else{
        arguments.callee();
      }
    }
    )()
    
    
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/11/11 16:50:20 - 2010-11-11
  2. 2010/11/11 16:49:55 - 2010-11-11
  3. 2010/11/11 09:49:40 - 2010-11-11
  4. 2010/11/11 09:47:58 - 2010-11-11
  5. 2010/11/11 09:47:16 - 2010-11-11