ヤフオクの取引ナビ(ベータ版)からクリックポスト用データをコピーする

    @@ -1,36 +1,3 @@ //@javascript_url //@private - var table = []; - - String.prototype.capitalize = function(){ - return this.replace(/[A-Za-z0-9\-\s]/g, function(s) { - return String.fromCharCode(s.charCodeAt(0) + 0xFEE0); - }); - }; - - String.prototype.paragraph = function(){ - var str = this; - if (str.length > 20) { - str = str.replace(/^(.+[1-9][0-9]*)(.*)/, '$1\n$2'); - } - return str.toString(); - } - - $('.decCnfWr:lt(4)').each(function(i){ - table.push($(this).text()); - }); - - var bidder = [ - $('.decItmName').text().capitalize().substr(0,20), // print_title - table[1].substr(1,3), // zip1 - table[1].substr(4,4), // zip2 - table[1].substr(8).capitalize().paragraph(), // reciver_adress - table[0], // receiver_name - table[2], // receiver_phone - - ]; - - if( table[3].indexOf('クリックポスト') !== -1 ) { - console.log(bidder.toString()); - prompt('コピーしてください',bidder.toString()); - } +!function(){var t=[];String.prototype.capitalize=function(){return this.replace(/[A-Za-z0-9\-\s]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+65248)})},String.prototype.paragraph=function(){var t=this;return t.length>20&&(t=t.replace(/^(.+[1-9][0-9]*)(.*)/,"$1\n$2")),t.toString()},$(".decCnfWr:lt(4)").each(function(){t.push($(this).text())});var r=[$(".decItmName").text().capitalize().substr(0,20),t[1].substr(1,3),t[1].substr(4,4),t[1].substr(8).capitalize().paragraph(),t[0],t[2]];-1!==t[3].indexOf("クリックポスト")&&(console.log(r.toString()),prompt("コピーしてください",r.toString()))}();
  • //@javascript_url
    //@private
    !function(){var t=[];String.prototype.capitalize=function(){return this.replace(/[A-Za-z0-9\-\s]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+65248)})},String.prototype.paragraph=function(){var t=this;return t.length>20&&(t=t.replace(/^(.+[1-9][0-9]*)(.*)/,"$1\n$2")),t.toString()},$(".decCnfWr:lt(4)").each(function(){t.push($(this).text())});var r=[$(".decItmName").text().capitalize().substr(0,20),t[1].substr(1,3),t[1].substr(4,4),t[1].substr(8).capitalize().paragraph(),t[0],t[2]];-1!==t[3].indexOf("クリックポスト")&&(console.log(r.toString()),prompt("コピーしてください",r.toString()))}();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2016/03/08 16:15:50 - 2016-03-08
  2. 2015/08/13 13:48:42 - 2015-08-13
  3. 2015/08/05 14:07:03 - 2015-08-05
  4. 2015/08/05 13:44:55 - 2015-08-05
  5. 2015/08/04 17:20:52 - 2015-08-04
  6. 2015/07/23 14:24:45 - 2015-07-23
  7. 2015/07/23 14:23:57 - 2015-07-23
  8. 2015/07/23 14:18:01 - 2015-07-23
  9. 2015/07/23 14:17:08 - 2015-07-23
  10. 2015/07/23 14:15:39 - 2015-07-23
  11. 2015/07/23 14:14:03 - 2015-07-23
  12. 2015/07/23 14:12:51 - 2015-07-23
  13. 2015/07/23 13:56:25 - 2015-07-23
  14. 2015/07/17 23:41:01 - 2015-07-17
  15. 2015/07/17 23:33:48 - 2015-07-17
  16. 2015/07/17 23:32:28 - 2015-07-17
  17. 2015/07/17 23:19:59 - 2015-07-17
  18. 2015/07/17 22:41:53 - 2015-07-17
  19. 2015/07/17 22:38:44 - 2015-07-17
  20. 2015/07/17 22:36:05 - 2015-07-17