ひなったーにな~れ Fork

  • /*
     * @title ひなったーにな~れ
     * @description canvasとdataURLが使えると顔をひなったーにします。 詳細→ http://hinata.in/blog/20100227231617.html
     * @include http://*
     * @license MIT License
     * @require http://lab.gkbr.me/facedetect/facedetector.min.js
     */
    
    /*
    ひなったーにな~れ
    
       *``・*。
       |   `*。
      。∩    *
      + (・ω・`)*+゚
      *。 ヽ つ*゚*
      ゙・+。*・゚⊃ +゚
      ☆ ∪~ 。*゚
       ゙・+。*・゚
    */
    
    (function(i, max) {
    	var hinata = new Image();
    	hinata.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABHCAYAAABbGSRwAAAgAElEQVR42qWad3SUV5btZbvb09PTz+2ecdsGxVKsJFUpZyQESEIgFEABSSjnhDIKKEtIiChA5JzBYLKxsckZRM7RxmAb27Sx3dPda9b8sd8+X0l2+7VnzMzTWnd9VaVS1f3dfc4+51TJrLigCJHhkQgbOQajQiIQFBgOb89guBn94eEWCC+PIOXq6T4MXp687TEMBoMvnJ294eLiA6PRT3nMyyuY12Donf3g4OQBaxsdLCzsobJxhFZrgIurF3SuPlDrPeHgaICdrQZWlrawMLeFjbUTHB100GoMMBq8YXDxgoO9HrYqDTRqo3LfwMednIywt3fh1RUODgZYW2tgY6Pl0vNxIzQaD76XBxwdjcrj5uZ2GDrUVlkqWy2M7n4wy8vJxZiwsQgdEYGQ4HD4+45U4ATY3TVAuS1Xd7cAeLgHwo1XgdXpPKHXeynQ7nzcgwfj5jYMWr0P7BzcBoDtCOMAtdoZehcPaAwE0brD3sGZwGrYWNnB2tKOt7VQO/E5Ole48VAE0JHPsbeTQ3BVYI1GH4IaFFC12k25qlS6AWCdAiywWr7+4GEMAsvVlq+lAGdnZCE0JAzBw0ZiWMBI+HgNVwAHFZbbRioqS2BFUYHVaNyVN9AR2uDmDzeqbHT1gxNPWWXnAktrNd/IFtZW9jxxHTQ6NzjqPGBLlVR8c1uVE2yt7WHHq8bJBTqtK1yc3QnsrVwFWJZO66Y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+F7RF6zAtVv/CoP+/wGav//Y3Nr1pIViXG4hVWV5YneGBDdle2Jzrgy1Ue2vxMK5gruHYWjQCW5jrWwpDsblAVhg2FVA9rnV54YQLxcocCdMQLMsKwpLMYVicHsDc9Edvih9mJvmgI94DTTEGNIzVoTFSS+D/Oays/wsU80KmA6QYTgAAAABJRU5ErkJggg==";
    	
    	var img = new Image();
    	img.src = document.images[i].src;
    	var res = FaceDetector.detect(img);
    
    	if (res != null) {
    		var cvs = document.createElement("canvas");
    		cvs.width = img.width;
    		cvs.height = img.height;
    		var ctx = cvs.getContext("2d");
    		ctx.drawImage(img, 0, 0);
    		ctx.drawImage(hinata, res.x, res.y, res.w, res.w);
    		document.images[i].src = cvs.toDataURL();
    	}
    
    	i += 1;
    
    	if (i >= max) {
    		return;
    	}
    	var n = arguments.callee;
    	setTimeout(function() {
    		n(i, max);
    	},1);
    })(0, document.images.length);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/11/04 19:13:20 - 2010-11-04
  2. 2010/11/04 18:36:46 - 2010-11-04
  3. 2010/11/04 18:33:29 - 2010-11-04