Changeset 28694

Show
Ignore:
Timestamp:
01/20/09 14:13:12 (4 years ago)
Author:
cho45
Message:

新しいはてキでうごいていなかった

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/hatena.diary.prettydiff.user.js

    r15880 r28694  
    2020                ]]></>); 
    2121 
    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) { 
    2323                        item.addEventListener("click", function (e) { 
    2424                                e.stopPropagation(); 
     
    237237 
    238238function escapeHTML (str) { 
    239         var str = String(str); 
     239        str = String(str); 
    240240        var map = { "&" : "&amp;", "<" : "&lt;" , ">" : "&gt;"}; 
    241241        return str.replace(/[&<>]/g, function (m) { 
     
    256256        } 
    257257        if (!context) context = document; 
    258         var exp = (context.ownerDocument || context).createExpression(exp, function (prefix) { 
     258        exp = (context.ownerDocument || context).createExpression(exp, function (prefix) { 
    259259                var ns = { "atom" : "http://purl.org/atom/ns#", "hatena" : "http://www.hatena.ne.jp/info/xmlns#" }; 
    260260                return document.createNSResolver((context.ownerDocument == null ? context 
     
    301301                                        var ret = []; 
    302302                                        var i = null; 
    303                                         while (i = result.iterateNext()) { 
     303                                        while ((i = result.iterateNext())) { 
    304304                                                ret.push(i); 
    305305                                        }