Hatena TeX to Google chart API
by
motemen
2010-07-25 [2010/07/25 02:14:52]
/*
* @title Hatena TeX to Google chart API
* @description
* @include http://*
* @license MIT License
* @require
*/
var imgs = document.querySelectorAll('img.tex');
for (var i = 0; i < imgs.length; i++) {
imgs[i].src = 'http://chart.apis.google.com/chart?cht=tx&chl=' + encodeURIComponent(imgs[i].alt);
}
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。