From b9e86d7f01dc3b4d0b7208df3b2df2857b3e239f Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Sun, 12 Dec 2021 22:43:22 +0800 Subject: [PATCH] better for mask bot --- static/index.html | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/static/index.html b/static/index.html index 08aded3..c3a44a4 100644 --- a/static/index.html +++ b/static/index.html @@ -97,10 +97,6 @@ margin: 0; } - .card-body { - padding: 0.75em; - } - .behind { z-index: 98; cursor: pointer; @@ -155,8 +151,13 @@
-
- +
+ + +
+
@@ -214,16 +215,19 @@ function make_status_box_html(status, with_comment_list) { return (`
- + - ${status.account.display_name}@${status.account.acct} + ${status.account.acct === "mask_bot" ? + "匿名用户" + /^

(\[[^\]]*\]):/.exec(status.content)[1] : ( + status.account.display_name + ' @' +status.account.acct)} ${status.reblog && (status = status.reblog) && ` 转发 @${status.account.acct}` || ''}

- ${status.content} + ${status.account.acct === "mask_bot" ? + status.content.replace(/^

\[([^\]]*)\]:
/, '

') : status.content}

-
+