Amazon.co.jp2asin記法

    @@ -6,7 +6,9 @@ */ (function(){ -var asin=document.getElementById('ASIN').value; -var d='<input type="text" size="30" value="asin:'+asin+'" onfocus="this.select();" readonly="readonly"><input type="text" size="30" value="asin:'+asin+':detail" onfocus="this.select();" readonly="readonly">'; +var a=document.getElementById('ASIN').value; +var b='<input type="text" size="30" value="asin:'; +var c='" onfocus="this.select();" readonly="readonly">'; +var d=b+a+c+b+a+':detail'+c; document.getElementById('PrimeStripeContent').innerHTML+=d+'<br>'; })();
  • /*
     * @title Amazon.co.jp2asin記法
     * @description Amazon.co.jp で表示している商品をはてなで使えるasin記法で表示する。
     * @include http://www.amazon.co.jp/*
     * @license MIT License
     */
    
    (function(){
    var a=document.getElementById('ASIN').value;
    var b='<input type="text" size="30" value="asin:';
    var c='" onfocus="this.select();" readonly="readonly">';
    var d=b+a+c+b+a+':detail'+c;
    document.getElementById('PrimeStripeContent').innerHTML+=d+'<br>';
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/02/13 16:24:01 - 2011-02-13
  2. 2011/02/13 14:47:17 - 2011-02-13
  3. 2011/02/13 14:41:26 - 2011-02-13