Stack Stock Books の本をカーリルで読みたい
by
miyamuko
2010-09-22 [2010/09/22 11:04:55]
Stack Stock Books で表示している本をカーリルの読みたいリストに追加する
@@ -8,26 +8,26 @@
// Based on http://q.hatena.ne.jp/1213176191
-var asin = document.getElementById('ASIN.1').value;
-var status = "wish";
+var a = document.getElementById('ASIN.1').value;
+var s = "wish";
-var win = window.open();
-var form = document.createElement("form");
-form.id = "hoge";
-form.method = "POST";
-form.action = "http://calil.jp/add_book";
-win.document.body.appendChild(form);
-
-var asinInput = document.createElement("input");
-asinInput.type = "hidden";
-asinInput.name = "asin";
-asinInput.value = asin;
-form.appendChild(asinInput);
-
-var statusInput = document.createElement("input");
-statusInput.type = "hidden";
-statusInput.name = "status";
-statusInput.value = status;
-form.appendChild(statusInput);
+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 a = document.createElement("input");
+ai.type = "hidden";
+ai.name = "asin";
+ai.value = a;
+f.appendChild(ai);
+
+var si = document.createElement("input");
+si.type = "hidden";
+si.name = "status";
+si.value = s;
+f.appendChild(si);
-win.document.getElementById('hoge').submit();
+w.document.getElementById('hoge').submit();
/*
* @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;
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 a = document.createElement("input");
ai.type = "hidden";
ai.name = "asin";
ai.value = a;
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 です。