# HG changeset patch # User HIROSE Yuuji # Date 1653780999 -32400 # Node ID ae6c5df09f220006744a312c82c00226e54b74a1 # Parent ec5cb1790119ffe954a7ef1948763dfe25b29fc3 Add class="author" to link of author diff -r ec5cb1790119 -r ae6c5df09f22 s4-blog.sh --- a/s4-blog.sh Sun May 29 07:55:44 2022 +0900 +++ b/s4-blog.sh Sun May 29 08:36:39 2022 +0900 @@ -505,7 +505,7 @@ cat< ${picon}__EDIT__#$aid -`echo $uname|htmlescape` +`echo $uname|htmlescape` ${reki:-$tm} <__NOTIFY__> EOF diff -r ec5cb1790119 -r ae6c5df09f22 s4-main.js --- a/s4-main.js Sun May 29 07:55:44 2022 +0900 +++ b/s4-main.js Sun May 29 08:36:39 2022 +0900 @@ -1040,8 +1040,7 @@ if (repltd) { let txt = repltd.innerText, authtd = repltd.parentNode.getElementsByTagName("td")[0], - authAs = authtd.getElementsByTagName("a"), - author = authAs[authAs.length-1].innerText, + author = authtd.querySelector("a.author").innerText, digest = txt.split("\n").splice(0, hoverTextLines).join("\n"); return "[[ "+author+" ]]\n"+digest; } else