s4

diff s4-main.js @ 939:6c2f8bb3cc6e

Activate direct link to attached files
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 06 Sep 2021 09:11:25 +0900
parents 627a7fdf3e16
children b8d09525a0b4
line diff
     1.1 --- a/s4-main.js	Tue Aug 17 09:46:29 2021 +0900
     1.2 +++ b/s4-main.js	Mon Sep 06 09:11:25 2021 +0900
     1.3 @@ -90,8 +90,8 @@
     1.4  		text = td.textContent,
     1.5  		author = tr.getElementsByTagName("a");
     1.6  	    if (author) author = author[0].getAttribute("title");
     1.7 -	    if (href.match(/\?showattc\+article_m\+([0-9+])/)) {
     1.8 -		if (td.innerHTML.match(/x読み取り不可/)) {
     1.9 +	    if (href.match(/\?showattc\+article_m\+([0-9]+)$/)) {
    1.10 +		if (td.innerHTML.match(/読み取り不可/)) {
    1.11  		    a.removeAttribute("href");
    1.12  		    continue;
    1.13  		}