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

    @@ -10,14 +10,14 @@ * 住所: 半角英数を全角に置き換え、20文字以上の場合は適宜改行を挿入 * * クリックポストの新規発送ページに移動後、 - * 「クリックポストの新規発送フォームを一括入力する」http://let.hatelabo.jp/mitsube/let/hJmf08Ws8scO + * 「クリックポストの新規発送フォームを一括入力する」 + * http://let.hatelabo.jp/mitsube/let/hJmf08Ws8scO * を実行し、コピーしていたものをペーストしてください。 * - * @include http://https://click-post.secure.force.com/* + * @include https://contact.auctions.yahoo.co.jp/seller/* * @license MIT License * @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()))}(); +!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()))}();
  • /*
     * @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
     * 
     */
    
    !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