()
| 290 | |
| 291 | // 兑换附件按钮改为直链(不再弹出确认提示框) |
| 292 | function attachmentHref() { |
| 293 | attachmentHrefTime += 1; // 计算该函数执行次数 |
| 294 | let attachmenthref = document.querySelector('.tab_button .button a'); |
| 295 | if (attachmenthref && attachmenthref.href == "javascript:;"){ |
| 296 | let attachmenthref_href = attachmenthref.onclick.toString(); |
| 297 | attachmenthref.href = attachmenthref_href.match(patt_attachment_href)[0]; |
| 298 | attachmenthref.onclick = null; |
| 299 | } |
| 300 | if (attachmentHrefTime == 50 || document.getElementsByClassName("showhide").length > 0){ // 当该函数执行超过50次(5秒),或没有隐藏内容时停止定时执行 |
| 301 | clearInterval(attachmentHref_Interval) |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | |
| 306 | // 清理帖子列表中帖子标题开头的〖XXX〗【XXX】文字 |
nothing calls this directly
no outgoing calls
no test coverage detected