tt25 (owner)

Revisions

gist: 29438 Download_button fork
public
Public Clone URL: git://gist.github.com/29438.git
Embed All Files: show embed
JavaScript #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ==UserScript==
// @name Hatena Bookmark comment separetor
// @include http://b.hatena.ne.jp/entry/http*
// @description Comment/Nocomment separate at New Hatena Bookmark (@Opera)
// @namespace http://tt25.org/
// @version 1.0.0
// ==/UserScript==
 
if(location.href.indexOf("http://b.hatena.ne.jp/entry/") == 0){
document.addEventListener("DOMContentLoaded",function(){
var nocom=document.createElement("ul");
nocom.className="userlist bookmark-list";
var x=document.evaluate('//li[contains(@class,"nocomment")]',document,null,7,null);
for(var i=0,len=x.snapshotLength;i<len;i++){
nocom.appendChild(x.snapshotItem(i));
}
document.getElementById("bookmarked_user").parentNode.appendChild(nocom);
},false);
}