my bookmarklet

    
      
  • /*
     * @title my bookmarklet
     * @description hatena::bookmark test
     * @include http://*
     * @license MIT License
     * @require 
     */
    (function(){var fr,u,b,r;
      u=window.location.href;
      b='http://b.hatena.ne.jp/entry/panel/?url=';
      r=new RegExp('[\?\&]utm_.+=.+','g');
      b=b+encodeURIComponent(u.replace(r,''));
      fr=document.createElement('iframe');
      fr.width='400';
      fr.height='180';
      fr.scrolling='yes';
      fr.src=b;
      fr.style.position='related';
      fr.style.top='0px';
      fr.style.border='none';
     document.body.appendChild(fr);
    })()
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/02/13 19:32:00 - 2011-02-13