B☆KUMA

  • /*
     * @title B☆KUMA
     * @description "がんばる私"に、ちょっと☆★☆★
     * @include http://bkuma.hatena.ne.jp/entry/*
     * @license MIT License
     * @require 
     */
    
    (function() {
      function main () {
        var Hatena = null;
        var time = setInterval(function() {
          if (window.Hatena) {
            Hatena = window.Hatena;
            clearInterval(time);
            loadStar();
          }
        }, 100);
        function loadStar() {
          Hatena.Star.SiteConfig = {
            entryNodes: {
              'ul.bookmark-list li': {
                container: "span.starContainer",
                title: "span.comment",
                uri: "a.username"
              }
            }
          };
          Hatena.Star.EntryLoader.loadEntries = null;
          // Hatena.Star.EntryLoader(); // for UserScript (元のページのどこかのイベントで呼ばれるので、
        }
      }
      var script = document.createElement('script');
      script.textContent = '(' + main.toString() + '());';
      document.body.appendChild(script);
    }());
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2014/12/10 14:11:22 - 2014-12-10
  2. 2014/12/10 14:10:03 - 2014-12-10
  3. 2014/12/10 14:07:03 - 2014-12-10
  4. 2014/12/10 14:04:37 - 2014-12-10
  5. 2014/12/10 14:02:39 - 2014-12-10
  6. 2014/11/20 13:02:47 - 2014-11-20
  7. 2014/11/20 11:13:10 - 2014-11-20