Stack Stock Books の本をカーリルで読みたい

    @@ -9,6 +9,7 @@ // Based on http://q.hatena.ne.jp/1213176191 var a = document.getElementById('ASIN.1').value; +alert(a); var s = "wish"; var w = window.open(); @@ -21,7 +22,9 @@ var ai = document.createElement("input"); ai.type = "hidden"; ai.name = "asin"; +alert(ai); ai.value = a; +alert(ai); f.appendChild(ai); var si = document.createElement("input");
  • /*
     * @title Stack Stock Books の本をカーリルで読みたい
     * @description Stack Stock Books で表示している本をカーリルの読みたいリストに追加する
     * @include http://stack.nayutaya.jp/
     * @license MIT License
     * @require
     */
    
    // Based on http://q.hatena.ne.jp/1213176191
    
    var a = document.getElementById('ASIN.1').value;
    alert(a);
    var s = "wish";
    
    var w = window.open();
    var f = document.createElement("form");
    f.id = "hoge";
    f.method = "POST";
    f.action = "http://calil.jp/add_book";
    w.document.body.appendChild(f);
    
    var ai = document.createElement("input");
    ai.type = "hidden";
    ai.name = "asin";
    alert(ai);
    ai.value = a;
    alert(ai);
    f.appendChild(ai);
    
    var si = document.createElement("input");
    si.type = "hidden";
    si.name = "status";
    si.value = s;
    f.appendChild(si);
    
    w.document.getElementById('hoge').submit();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/09/22 11:04:55 - 2010-09-22
  2. 2010/09/22 10:42:35 - 2010-09-22
  3. 2010/09/22 10:41:12 - 2010-09-22
  4. 2010/09/22 10:39:59 - 2010-09-22
  5. 2010/09/22 10:39:07 - 2010-09-22
  6. 2010/09/22 10:35:18 - 2010-09-22
  7. 2010/09/22 10:33:30 - 2010-09-22
  8. 2010/09/22 10:30:07 - 2010-09-22
  9. 2010/09/22 10:29:45 - 2010-09-22