汚いノートを再現する

    
      
  • /*
     * @title 汚い文字配列
     * @description my bookmarklet
     * @include http://*
     * @license MIT License
     * @require jquery
     */
    
        var rand = function(x){
            return Math.floor(Math.random() * x);
        }
        var tag_p = [];
        var p_length = $('p').length;
        for (var i = 0;i < p_length;i++){
            tag_p.push($('p').eq(i).text());
        }
        $("p").text("");
        for (var i = 0;i < p_length;i++){
            var word_count = tag_p[i].length
            for (var j = 0;j < word_count;j++){
                var get_word = $("p").eq(i).html();
                $("p").eq(i).html(get_word + "<span style='position:relative;top:" + rand(16) + ";font-size:" + (rand(16) + 16) + "'>" + tag_p[i][j] + "</span>");
            }
        }
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/11/03 17:06:16 - 2011-11-03
  2. 2011/11/03 16:54:50 - 2011-11-03
  3. 2011/11/03 16:43:25 - 2011-11-03
  4. 2011/11/03 16:35:46 - 2011-11-03