Changeset 28694
- Timestamp:
- 01/20/09 14:13:12 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.diary.prettydiff.user.js
r15880 r28694 20 20 ]]></>); 21 21 22 $X("id('body')/div[@class=' info']//a[starts-with(@href, '/keywordlog')]").forEach(function (item, index, links) {22 $X("id('body')/div[@class='keyword-relation']//a[starts-with(@href, '/keywordlog')]").forEach(function (item, index, links) { 23 23 item.addEventListener("click", function (e) { 24 24 e.stopPropagation(); … … 237 237 238 238 function escapeHTML (str) { 239 varstr = String(str);239 str = String(str); 240 240 var map = { "&" : "&", "<" : "<" , ">" : ">"}; 241 241 return str.replace(/[&<>]/g, function (m) { … … 256 256 } 257 257 if (!context) context = document; 258 varexp = (context.ownerDocument || context).createExpression(exp, function (prefix) {258 exp = (context.ownerDocument || context).createExpression(exp, function (prefix) { 259 259 var ns = { "atom" : "http://purl.org/atom/ns#", "hatena" : "http://www.hatena.ne.jp/info/xmlns#" }; 260 260 return document.createNSResolver((context.ownerDocument == null ? context … … 301 301 var ret = []; 302 302 var i = null; 303 while ( i = result.iterateNext()) {303 while ((i = result.iterateNext())) { 304 304 ret.push(i); 305 305 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)