SBMCommentsViewerを入れた

suVeneさんのSBMCommentsViewerPlusを使っていたのだけれど、

(2006/12/23: 本家の人がいろいろ取り込んでくれて、もっとパワーアップしてるので公開中止。オリジナルを取得してください。)

とのことなので本家のSBMCommentsViewerを入れた。

FireBugにコンソールにエラーが出るのでちょびっとだけ修正。

% svn diff
Index: sbmcommentsviewer.user.js
===================================================================
--- sbmcommentsviewer.user.js   (revision 134)
+++ sbmcommentsviewer.user.js   (working copy)
@@ -119,7 +119,7 @@
     var tag_cloud_min_size = 15;
     var tag_cloud_max_size = 50;

-    if (self.location.href!=top.location.href) return;
+    try{if (self.location.href!=top.location.href) return}catch(e){return}
     var uri = top.location.href.replace(/#/g, '%23');
     var firefox;
     var w;
@@ -1018,7 +1018,7 @@
     function bzLoadJsonp() {
         w.bzCallback = function(json) {
             var comments = [];
-            if(json){
+            if(json && 0 < json.length){
                 comment_area.addCount(json[0].user_num, buzzurl_favicon, buzzurl_page);
                 var count = json[0].posts.length;
                 for(var i =0; i<count; i++) {

いい感じ。