はてブでアーーーーッ!!!

  • /*
     * @title はてブでアーーーーッ!!!
     * @description アーーーーッ!!!
     * @include http://*
     * @license BSD
     * @require jQuery
     * @require http://miya2000.up.seesaa.net/marquee/marquee.js
     */
    (function() {
      $.getJSON('http://b.hatena.ne.jp/entry/json/?url=' + encodeURIComponent(location.href.replace(/#/, '%23')) + '&callback=?', function(data) {
        $.each(data.bookmarks, function(index, item) {
          if (item.comment) {
            new Marquee($('<p/>').attr('id','HatebuAhhhhh'+index).css({'position': 'absolute !important', 'top': (index*60+50)+'px !important', 'z-index': 999, 'font-size': '30px !important', 'font-weight': 'bold !important'}).append($('<img/>').attr('src','http://www.hatena.ne.jp/users/' + item.user.substr(0, 2) + '/' + item.user + '/profile.gif').css('width', '30px !important')).append($('<span/>').text(item.comment)).appendTo(document.body)[0].id, {amount:Math.floor(Math.random()*5)+10, delay:60});
          }
        });
      });
    })()
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/05/27 20:34:33 - 2010-05-27
  2. 2010/05/27 20:32:36 - 2010-05-27