From 28f84dc5f68ac51c7268fd939ce83cbfd5c413cb Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 25 Mar 2020 00:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A6=E6=88=AAapp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tieba page.js b/tieba page.js index f6bc8d9..973b12d 100644 --- a/tieba page.js +++ b/tieba page.js @@ -480,6 +480,12 @@ location.href = '/mo/q/msg'; } + + if (ev.target.tagName === 'A' && ev.target.className === 'item comment itemonly') { + ev.stopPropagation(); + ev.preventDefault(); + } + if (ev.target.classList.contains('j_new_header_reply')) { F.use('spb/widget/normal_post_list', function (threadList) { let x = new threadList(window.conxx); @@ -494,6 +500,16 @@ if (ev.target.classList.contains('user_name')) { location.href = `https://tieba.baidu.com/home/main?un=${ev.target.innerText}`; } + if (ev.target.tagName === 'SPAN' && ev.target.classList.contains('forumname')) { + location.href = `https://tieba.baidu.com/f?kw==${ev.target.innerText}&pn=0&`; + } + if (ev.target.tagName === 'SPAN' && ev.target.classList.contains('createtime')) { + ev.stopPropagation(); + ev.preventDefault(); + } + if (ev.target.tagName === 'H4' && ev.target.classList.contains('title')) { + location.href = `https://tieba.baidu.com/home/main?un=${ev.target.innerText}`; + } if (ev.target.classList.contains('icon_tieba_edit')) { //todo 发帖 似乎没相关的调用模块??? }