xmoj-script 1.2.35 → 1.2.37

Sign up to get free protection for your applications and to get access to all the features.
package/Update.json CHANGED
@@ -2135,6 +2135,28 @@
2135
2135
  }
2136
2136
  ],
2137
2137
  "Notes": "No release notes were provided for this release."
2138
+ },
2139
+ "1.2.36": {
2140
+ "UpdateDate": 1723018816861,
2141
+ "Prerelease": true,
2142
+ "UpdateContents": [
2143
+ {
2144
+ "PR": 653,
2145
+ "Description": "Update a number of names"
2146
+ }
2147
+ ],
2148
+ "Notes": "No release notes were provided for this release."
2149
+ },
2150
+ "1.2.37": {
2151
+ "UpdateDate": 1723094016287,
2152
+ "Prerelease": true,
2153
+ "UpdateContents": [
2154
+ {
2155
+ "PR": 655,
2156
+ "Description": "Prevent RE"
2157
+ }
2158
+ ],
2159
+ "Notes": "No release notes were provided for this release."
2138
2160
  }
2139
2161
  }
2140
2162
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.35
3
+ // @version 1.2.37
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -105,9 +105,11 @@ let RenderMathJax = async () => {
105
105
  };
106
106
  });
107
107
  }
108
- MathJax.startup.input[0].findTeX.options.inlineMath.push(["$", "$"]);
109
- MathJax.startup.input[0].findTeX.getPatterns();
110
- MathJax.typeset();
108
+ if (MathJax !== undefined) { //If there is a Math expression
109
+ MathJax.startup.input[0].findTeX.options.inlineMath.push(["$", "$"]);
110
+ MathJax.startup.input[0].findTeX.getPatterns();
111
+ MathJax.typeset();
112
+ }
111
113
  } catch (e) {
112
114
  console.error(e);
113
115
  if (UtilityEnabled("DebugMode")) {
@@ -2420,19 +2422,24 @@ async function main() {
2420
2422
  "huangkai": "黄开",
2421
2423
  "chenlangning": "陈朗宁",
2422
2424
  "chensiru": "陈斯如",
2425
+ "chensiqi": "陈思齐",
2423
2426
  "chentianle": "陈天乐",
2424
2427
  "chenxuanhe": "陈宣合",
2425
2428
  "chenzecong": "陈泽聪",
2426
2429
  "chenzerui": "陈泽睿",
2427
2430
  "danwenxiao": "单文骁",
2428
2431
  "dongminghui": "董明辉",
2432
+ "dujianping": "杜建平",
2429
2433
  "gaochenming": "高晨茗",
2434
+ "guoluxi": "郭麓羲",
2430
2435
  "guoqingtong": "郭庆桐",
2431
2436
  "guoruiqun": "郭睿群",
2432
2437
  "guyuchen": "顾毓辰",
2438
+ "guzheran": "顾哲然",
2433
2439
  "hanshujian": "韩书简",
2434
2440
  "heshuhan": "贺书瀚",
2435
2441
  "hexinyi": "何昕弈",
2442
+ "huheng": "胡恒",
2436
2443
  "huangmingxuan": "黄铭宣",
2437
2444
  "huangruina": "黄睿纳",
2438
2445
  "huangwei": "黄唯",
@@ -2441,6 +2448,13 @@ async function main() {
2441
2448
  "jingtaiyu": "荆泰宇",
2442
2449
  "jinweizhe": "金炜喆",
2443
2450
  "leijiahan": "雷家涵",
2451
+ "leiwenda": "雷文达",
2452
+ "lidonglin": "李东霖",
2453
+ "lihanzhang": "李含章",
2454
+ "lijiayi": "李佳毅",
2455
+ "limingrui": "李明睿",
2456
+ "lishinong": "李诗浓",
2457
+ "lizhishan": "李执善",
2444
2458
  "lianzhongzhe": "连中哲",
2445
2459
  "liaoyanxu": "廖彦旭",
2446
2460
  "lingzixiang": "凌梓翔",
@@ -2455,12 +2469,15 @@ async function main() {
2455
2469
  "lutianfeng": "陆天枫",
2456
2470
  "luojinyang": "罗金阳",
2457
2471
  "meitianyi": "梅天一",
2472
+ "niruolin": "倪若琳",
2458
2473
  "panyinliang": "潘胤良",
2459
2474
  "pengyixuan": "彭议萱",
2460
2475
  "putong": "蒲通",
2461
2476
  "qianqingyuan": "钱清源",
2462
2477
  "qidekai": "戚得凯",
2478
+ "renzhizhou": "任知周",
2463
2479
  "shanwenxiao": "单文骁",
2480
+ "shenhaoze": "沈昊泽",
2464
2481
  "shenxichen": "沈熙晨",
2465
2482
  "shihongxi": "施泓熙",
2466
2483
  "shimufan": "施慕梵",
@@ -2484,6 +2501,7 @@ async function main() {
2484
2501
  "wanxinlian": "万馨联",
2485
2502
  "wensiyi": "闻思奕",
2486
2503
  "wujinhong": "吴锦鸿",
2504
+ "wuruitong": "吴瑞桐",
2487
2505
  "wurunze": "吴润泽",
2488
2506
  "wuyukai": "巫昱恺",
2489
2507
  "xiangjicheng": "项际诚",
@@ -2503,7 +2521,9 @@ async function main() {
2503
2521
  "yezijiong": "叶梓炅",
2504
2522
  "youzhouhang": "尤周杭",
2505
2523
  "yuanruiqing": "袁瑞擎",
2524
+ "yuanyueyang": "袁悦洋",
2506
2525
  "yutingjun": "于庭郡",
2526
+ "yuqiuning": "余秋凝",
2507
2527
  "zhangchenming": "张宸铭",
2508
2528
  "zhangqiuze": "张秋泽",
2509
2529
  "zhangshuxuan": "张澍萱",
@@ -2514,6 +2534,7 @@ async function main() {
2514
2534
  "zhaochenwei": "赵晨伟",
2515
2535
  "zhengyinan": "郑逸楠",
2516
2536
  "zhonghongyi": "钟弘毅",
2537
+ "zhouyiqing": "周意清",
2517
2538
  "zhoujunyu": "周峻瑜",
2518
2539
  "zhouziyi": "周子逸",
2519
2540
  "zhouziyou": "周子游",
@@ -2526,6 +2547,8 @@ async function main() {
2526
2547
  "zhuyiyang": "朱奕阳",
2527
2548
  "hanjialin": "韩佳霖",
2528
2549
  "zhaozichen": "赵紫辰",
2550
+ "zhuochengjie": "卓成杰",
2551
+ "zhouhaiyang": "周海洋",
2529
2552
  "zhuaiwei": "朱艾薇",
2530
2553
  "linlitong": "林立桐",
2531
2554
  "xuyan": "徐衍",
@@ -2679,6 +2702,7 @@ async function main() {
2679
2702
  }
2680
2703
  }
2681
2704
  } else if (location.pathname == "/submitpage.php") {
2705
+ document.title = "提交代码: " + (SearchParams.get("id") != null ? "题目" + Number(SearchParams.get("id")) : "比赛" + Number(SearchParams.get("cid")));
2682
2706
  document.querySelector("body > div > div.mt-3").innerHTML = `<center class="mb-3">` + `<h3>提交代码</h3>` + (SearchParams.get("id") != null ? `题目<span class="blue">${Number(SearchParams.get("id"))}</span>` : `比赛<span class="blue">${Number(SearchParams.get("cid")) + `</span>&emsp;题目<span class="blue">` + String.fromCharCode(65 + parseInt(SearchParams.get("pid")))}</span>`) + `</center>
2683
2707
  <textarea id="CodeInput"></textarea>
2684
2708
  <center class="mt-3">
@@ -3339,6 +3363,9 @@ async function main() {
3339
3363
  });
3340
3364
  }
3341
3365
  } else if (location.pathname == "/conteststatistics.php") {
3366
+ if (new URL(location.href).searchParams.get("cid") != null) {
3367
+ document.title = "比赛 " + new URL(location.href).searchParams.get("cid") + " 统计";
3368
+ }
3342
3369
  document.querySelector("body > div > div.mt-3 > center > h3").innerText = "比赛统计";
3343
3370
  if (UtilityEnabled("ResetType")) {
3344
3371
  let Temp = document.getElementById("submission").childNodes;
@@ -5023,4 +5050,4 @@ int main()
5023
5050
  }
5024
5051
  }
5025
5052
 
5026
- main();
5053
+ main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {