xmoj-script 1.2.56 → 1.2.58

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,8 @@ import * as github from '@actions/github';
3
3
  const Octokit = github.getOctokit(process.argv[2]);
4
4
  const TrustedUsers = [
5
5
  "boomzero",
6
- "PythonSmall-Q"
6
+ "PythonSmall-Q",
7
+ "ptsq-bot"
7
8
  ];
8
9
  const LabelList = [
9
10
  "addon-script",
@@ -142,7 +143,7 @@ let NewData = Data.replaceAll(/(\/-?good first issue)|\/[A-Za-z_-]+/g, (match) =
142
143
  return match;
143
144
  });
144
145
 
145
- if (User === "PythonSmall-Q") {
146
+ if (User === "boomzero" || User === "ptsq-bot" || User === "PythonSmall-Q") {
146
147
  if (RemoveLabel("needs-triage")) {
147
148
  AddLabel("investigating");
148
149
  Milestone = LatestMilestone;
package/Update.json CHANGED
@@ -2442,6 +2442,28 @@
2442
2442
  }
2443
2443
  ],
2444
2444
  "Notes": "No release notes were provided for this release."
2445
+ },
2446
+ "1.2.57": {
2447
+ "UpdateDate": 1723968698208,
2448
+ "Prerelease": true,
2449
+ "UpdateContents": [
2450
+ {
2451
+ "PR": 712,
2452
+ "Description": "更改个人中心一栏鼠标指针样式"
2453
+ }
2454
+ ],
2455
+ "Notes": "No release notes were provided for this release."
2456
+ },
2457
+ "1.2.58": {
2458
+ "UpdateDate": 1724058379641,
2459
+ "Prerelease": true,
2460
+ "UpdateContents": [
2461
+ {
2462
+ "PR": 715,
2463
+ "Description": "更改短消息显示"
2464
+ }
2465
+ ],
2466
+ "Notes": "No release notes were provided for this release."
2445
2467
  }
2446
2468
  }
2447
2469
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.56
3
+ // @version 1.2.58
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -598,7 +598,9 @@ class NavbarStyler {
598
598
  }
599
599
  }
600
600
  }
601
-
601
+ function replaceMarkdownImages(text,string) {
602
+ return text.replace(/!\[.*?\]\(.*?\)/g,string);
603
+ }
602
604
  async function main() {
603
605
  try {
604
606
  if (location.href.startsWith('http://')) {
@@ -888,6 +890,7 @@ async function main() {
888
890
  }
889
891
  else if (document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul > li:nth-child(3) > a > span") != undefined && document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul > li:nth-child(3) > a > span").innerText != "个人中心") {
890
892
  let PopupUL = document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul");
893
+ PopupUL.style.cursor = 'pointer';
891
894
  PopupUL.innerHTML = `<li class="dropdown-item">修改帐号</li>
892
895
  <li class="dropdown-item">个人中心</li>
893
896
  <li class="dropdown-item">短消息</li>
@@ -4146,7 +4149,7 @@ int main()
4146
4149
  }
4147
4150
  let LastsMessageCell = document.createElement("td");
4148
4151
  Row.appendChild(LastsMessageCell);
4149
- LastsMessageCell.innerText = Data[i].LastsMessage;
4152
+ LastsMessageCell.innerText = replaceMarkdownImages(Data[i].LastsMessage,'[image]');
4150
4153
  let SendTimeCell = document.createElement("td");
4151
4154
  Row.appendChild(SendTimeCell);
4152
4155
  SendTimeCell.innerHTML = GetRelativeTime(Data[i].SendTime);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {
package/sitemap.xml CHANGED
@@ -1,7 +1,15 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
3
  <url>
4
- <loc>https://xmoj-bbs.tech/</loc>
5
- <lastmod>2024-01-23T23:16:10+08:00</lastmod>
4
+ <loc>https://xmoj-bbs.me/</loc>
5
+ <lastmod>2024-08-15T23:16:10+08:00</lastmod>
6
+ </url>
7
+ <url>
8
+ <loc>https://support.xmoj-bbs.me/</loc>
9
+ <lastmod>2024-08-16T23:16:10+08:00</lastmod>
10
+ </url>
11
+ <url>
12
+ <loc>https://docs.xmoj-bbs.me/</loc>
13
+ <lastmod>2024-08-16T23:16:10+08:00</lastmod>
6
14
  </url>
7
15
  </urlset>