From 714d360103f073951162a2894474323cd299c6e4 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 10 Oct 2020 20:24:28 +0800 Subject: [PATCH] fix bug --- tieba page.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index def1c8e..03bc193 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.017 +// @version 1.018 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -307,8 +307,14 @@ rrrxx += `回复 ${rrr.innerText} : ` re.removeChild(rrr) } + let ly = re.innerHTML.trim(); + + if (ly.indexOf('回复') === 0) { + rrrxx += re.innerHTML.replace('回复', '').replace(':', ''); + } else { + rrrxx += re.innerHTML; + } - rrrxx += re.innerHTML.replace('回复', '').replace(':', '') ell.innerHTML = `