(() => { const addspoiler = () => { $qr = $('#quick-reply') if (($qr.length == 0) || ($qr.find('input[name="spoiler"]').length != 0)) return; $qr.find('div.banner').append(' ', $('').attr("title", _('Spoiler Image')).append($(''), $('').text("SI"))) }; addspoiler() $(window).on('quick-reply', addspoiler) })() Array.from (document.querySelectorAll ("div.boardlist a")).filter (a => a.hasAttribute ("href")).forEach (a => { href = a.getAttribute ("href") ma = href.match (/^(\/[^\/]+\/)index.html$/) if (ma != null) { cata = ma [1] + "catalog.html" } else if (href == "/overboard/") { cata = "/overboard/catalog.html" } else { cata = null } if (cata != null) { e = document.createElement ("a") e.setAttribute ("href", cata) e.innerText = "+" a.insertAdjacentElement ("afterend", e) } })