Amazoom
by
xaicron
2010-05-18 [2010/05/18 13:11:45]
拡大画像のページで実行するとでっかくなる
@@ -1,6 +1,6 @@
/*
* @title Amazoom
- * @description Amazon to see full size image
+ * @description 拡大画像のページで実行するとでっかくなる
* @include http://www.amazon.*
* @license MIT License
* @require
/*
* @title Amazoom
* @description 拡大画像のページで実行するとでっかくなる
* @include http://www.amazon.*
* @license MIT License
* @require
*/
(function (d,c,e,a,b,p,l,i) {
function C(e,u,n,i) {
for (i = 0; i < e[c].length; i++) {
n = e[c][i];
if (n.nodeName === 'IMG' && n.src.match('http://z2-ec2.images-amazon.com/images/P/')) {
u = n.src.replace(/_SX\d+_SCLZ/, '_SCRM');
break;
}
else if (n[c].length) {
u = C(n,u);
if (u) { return u }
}
}
return u;
};
b = d[e]('div');
l = b[a](d[e]('a'));
p = l[a](d[e]('p'));
i = l[a](d[e]('img'));
l.href = p.innerHTML = i.src = i.alt = C(d.getElementById('zoomViewerDiv'));
b.style.textAlign = 'center';
d.getElementsByTagName('body')[0][a](b);
})(document,'childNodes','createElement','appendChild')
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。