From 217af82da5cdc580707fec30b485c94fa3d0a8b7 Mon Sep 17 00:00:00 2001 From: zhouyiqing0304 <94766918+zhouyiqing0304@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:05:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=9F=AD=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouyiqing0304 <94766918+zhouyiqing0304@users.noreply.github.com> --- XMOJ.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/XMOJ.user.js b/XMOJ.user.js index 3b3d4ddc..21cef1c0 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -598,7 +598,9 @@ class NavbarStyler { } } } - +function replaceMarkdownImages(text,string) { + return text.replace(/!\[.*?\]\(.*?\)/g,string); +} async function main() { try { if (location.href.startsWith('http://')) { @@ -4147,7 +4149,7 @@ int main() } let LastsMessageCell = document.createElement("td"); Row.appendChild(LastsMessageCell); - LastsMessageCell.innerText = Data[i].LastsMessage; + LastsMessageCell.innerText = replaceMarkdownImages(Data[i].LastsMessage,'[image]'); let SendTimeCell = document.createElement("td"); Row.appendChild(SendTimeCell); SendTimeCell.innerHTML = GetRelativeTime(Data[i].SendTime); From f55daed0caccefa00f19b8c32f9f90250e51a5a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 19 Aug 2024 09:06:19 +0000 Subject: [PATCH 2/3] 1.2.58 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 46d473a4..8db9e4c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "1.2.57", + "version": "1.2.58", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": { From f3d87e8327ee28ad64ba1929ce3a4b5d76b72318 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 19 Aug 2024 09:06:20 +0000 Subject: [PATCH 3/3] Update version info to 1.2.58 --- Update.json | 11 +++++++++++ XMOJ.user.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Update.json b/Update.json index 4525eb61..f01e7aed 100644 --- a/Update.json +++ b/Update.json @@ -2453,6 +2453,17 @@ } ], "Notes": "No release notes were provided for this release." + }, + "1.2.58": { + "UpdateDate": 1724058379641, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 715, + "Description": "更改短消息显示" + } + ], + "Notes": "No release notes were provided for this release." } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 21cef1c0..667a0e14 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 1.2.57 +// @version 1.2.58 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen