picplz quote
by
onishi
2011-05-25 [2011/05/25 13:53:03]
検索BOXに貼りつけタグが入りselectされるのでコピペしてください…
@@ -6,9 +6,6 @@
* @require jQuery
*/
-var tag = '<a href="' + location.href + '"><img src="' + $('#mainImage')[0].src.replace('_wmeg', '_t200s') + '"></a>';
+$('input.search').attr({value:'<a href="' + location.href + '"><img src="' + $('#mainImage')[0].src.replace('_wmeg', '_t200s') + '"></a>'}).select();
/* _t200s 以外に _t100s と _thmb が使えそう */
-
-$('input.search')[0].value = tag;
-$('input.search')[0].select();
/*
* @title picplz quote
* @description 検索BOXに貼りつけタグが入りselectされるのでコピペしてください…
* @include http://picplz.com/user/
* @license MIT License
* @require jQuery
*/
$('input.search').attr({value:'<a href="' + location.href + '"><img src="' + $('#mainImage')[0].src.replace('_wmeg', '_t200s') + '"></a>'}).select();
/* _t200s 以外に _t100s と _thmb が使えそう */
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。