Hatena TeX to Google chart API

  • /*
     * @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);
    }
    void(0)
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/07/25 02:14:52 - 2010-07-25
  2. 2010/07/25 00:46:51 - 2010-07-25