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

    @@ -20,42 +20,44 @@ * @private */ -(function(){ +// (function(){ - var table = []; +// 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').each(function(i){ - table.push($(this).text()); - }); - - if( table[6].indexOf('クリックポスト') !== -1 ) { - - var bidder = [ - $('.decItmName').text().capitalize().substr(0,15), // print_title - table[3].substr(1,3), // zip1 - table[3].substr(4,4), // zip2 - table[4].capitalize().paragraph(), // reciver_adress - table[2], // receiver_name - table[5], // receiver_phone - - ]; - - prompt('コピーしてください',bidder.toString()); - }else{ - alert('error!'); - } -})(); +// 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').each(function(i){ +// table.push($(this).text()); +// }); + +// if( table[6].indexOf('クリックポスト') !== -1 ) { + +// var bidder = [ +// $('.decItmName').text().capitalize().substr(0,15), // print_title +// table[3].substr(1,3), // zip1 +// table[3].substr(4,4), // zip2 +// table[4].capitalize().paragraph(), // reciver_adress +// table[2], // receiver_name +// table[5], // receiver_phone + +// ]; + +// prompt('コピーしてください',bidder.toString()); +// }else{ +// alert('error!'); +// } +// })(); + +!function(){var t=[];if(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").each(function(){t.push($(this).text())}),-1!==t[6].indexOf("クリックポスト")){var r=[$(".decItmName").text().capitalize().substr(0,15),t[3].substr(1,3),t[3].substr(4,4),t[4].capitalize().paragraph(),t[2],t[5]];prompt("コピーしてください",r.toString())}else alert("error!")}();
  • /*
     * @title ヤフオクの取引ナビ(ベータ版)からクリックポスト用データをコピーする
     * @description 「クリックポストの新規発送フォームを一括入力する」と合わせて使用してください
     *
     * ヤフオクの取引ナビベータ版のページで実行すると、プロンプトウィンドウが開きます。
     * 「オークションタイトル,郵便番号(上3桁),郵便番号(下4桁),住所,名前,電話番号」
     * といった形式のテキストが表示されていますので、コピーしてください。
     * タイトルと住所はクリックポスト用に整形しています。
     * タイトル: 半角英数を全角に置き換え、15文字以上は切り捨て
     * 住所: 半角英数を全角に置き換え、20文字以上の場合は適宜改行を挿入
     * 
     * クリックポストの新規発送ページに移動後、
     * 「クリックポストの新規発送フォームを一括入力する」
     * http://let.hatelabo.jp/mitsube/let/hJmf08Ws8scO
     * を実行し、コピーしていたものをペーストしてください。
     * 
     * @include https://contact.auctions.yahoo.co.jp/seller/*
     * @license MIT License
     * @javascript_url
     * @private
     */
    
    // (function(){
    
    //         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').each(function(i){
    //                 table.push($(this).text());
    //         });
    
    //         if( table[6].indexOf('クリックポスト') !== -1 ) {
    
    //                 var bidder = [
    //                         $('.decItmName').text().capitalize().substr(0,15),      // print_title
    //                         table[3].substr(1,3),   // zip1
    //                         table[3].substr(4,4),   // zip2
    //                         table[4].capitalize().paragraph(),    // reciver_adress
    //                         table[2],       // receiver_name
    //                         table[5],       // receiver_phone
    
    //                 ];
    
    //                 prompt('コピーしてください',bidder.toString());
    //         }else{
    //                 alert('error!');
    //         }
    // })();
    
    !function(){var t=[];if(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").each(function(){t.push($(this).text())}),-1!==t[6].indexOf("クリックポスト")){var r=[$(".decItmName").text().capitalize().substr(0,15),t[3].substr(1,3),t[3].substr(4,4),t[4].capitalize().paragraph(),t[2],t[5]];prompt("コピーしてください",r.toString())}else alert("error!")}();
  • 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