xmoj-script 1.2.50 → 1.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ custom: ["https://app.unifans.io/c/pythonsmall_q"]
@@ -1,7 +1,6 @@
1
1
  name: 帮助文档反馈
2
2
  description: 帮助文档有问题
3
3
  labels: docs, needs-triage
4
- assignees: PythonSmall-Q
5
4
  title: "[Docs]"
6
5
  body:
7
6
  - type: checkboxes
package/AddonScript.js CHANGED
@@ -1 +1 @@
1
- console.log("AddonScript.js has loaded.");
1
+ console.log("AddonScript.js has loaded.");
package/Update.json CHANGED
@@ -2340,6 +2340,75 @@
2340
2340
  }
2341
2341
  ],
2342
2342
  "Notes": "No release notes were provided for this release."
2343
+ },
2344
+ "1.2.51": {
2345
+ "UpdateDate": 1723190703489,
2346
+ "Prerelease": true,
2347
+ "UpdateContents": [
2348
+ {
2349
+ "PR": 680,
2350
+ "Description": " 解决强制O2的问题"
2351
+ }
2352
+ ],
2353
+ "Notes": "No release notes were provided for this release."
2354
+ },
2355
+ "1.2.52": {
2356
+ "UpdateDate": 1723260210125,
2357
+ "Prerelease": false,
2358
+ "UpdateContents": [
2359
+ {
2360
+ "PR": 663,
2361
+ "Description": "Do we really need this?"
2362
+ },
2363
+ {
2364
+ "PR": 664,
2365
+ "Description": "fix reply infinite looping"
2366
+ },
2367
+ {
2368
+ "PR": 665,
2369
+ "Description": "fix replying"
2370
+ },
2371
+ {
2372
+ "PR": 667,
2373
+ "Description": "fix replying(again)"
2374
+ },
2375
+ {
2376
+ "PR": 669,
2377
+ "Description": "smartAlert!"
2378
+ },
2379
+ {
2380
+ "PR": 670,
2381
+ "Description": "Fix RE"
2382
+ },
2383
+ {
2384
+ "PR": 671,
2385
+ "Description": "允许在已结束的比赛下提交 #287"
2386
+ },
2387
+ {
2388
+ "PR": 673,
2389
+ "Description": "Remove headers"
2390
+ },
2391
+ {
2392
+ "PR": 674,
2393
+ "Description": "Stop!"
2394
+ },
2395
+ {
2396
+ "PR": 680,
2397
+ "Description": " 解决强制O2的问题"
2398
+ }
2399
+ ],
2400
+ "Notes": "No release notes were provided for this release."
2401
+ },
2402
+ "1.2.53": {
2403
+ "UpdateDate": 1723352066327,
2404
+ "Prerelease": true,
2405
+ "UpdateContents": [
2406
+ {
2407
+ "PR": 690,
2408
+ "Description": "移除之前忘记操作的admin"
2409
+ }
2410
+ ],
2411
+ "Notes": "No release notes were provided for this release."
2343
2412
  }
2344
2413
  }
2345
2414
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.50
3
+ // @version 1.2.53
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -39,7 +39,7 @@
39
39
  */
40
40
 
41
41
  const CaptchaSiteKey = "0x4AAAAAAALBT58IhyDViNmv";
42
- const AdminUserList = ["zhuchenrui2", "shanwenxiao", "admin", "shihongxi"];
42
+ const AdminUserList = ["zhuchenrui2", "shanwenxiao", "admin"];
43
43
 
44
44
  let PurifyHTML = (Input) => {
45
45
  try {
@@ -2754,13 +2754,15 @@ async function main() {
2754
2754
  ErrorElement.style.display = "none";
2755
2755
  document.querySelector("#Submit").disabled = true;
2756
2756
  document.querySelector("#Submit").value = "正在提交...";
2757
+ let o2Switch="&enable_O2=on";
2758
+ if(!document.querySelector("#enable_O2").checked)o2Switch="";
2757
2759
  await fetch("https://www.xmoj.tech/submit.php", {
2758
2760
  "headers": {
2759
2761
  "content-type": "application/x-www-form-urlencoded"
2760
2762
  },
2761
2763
  "referrer": location.href,
2762
2764
  "method": "POST",
2763
- "body": (SearchParams.get("id") != null ? "id=" + SearchParams.get("id") : "cid=" + SearchParams.get("cid") + "&pid=" + SearchParams.get("pid")) + "&language=1&" + "source=" + encodeURIComponent(CodeMirrorElement.getValue()) + "&" + "enable_O2=on"
2765
+ "body": (SearchParams.get("id") != null ? "id=" + SearchParams.get("id") : "cid=" + SearchParams.get("cid") + "&pid=" + SearchParams.get("pid")) + "&language=1&" + "source=" + encodeURIComponent(CodeMirrorElement.getValue()) + o2Switch
2764
2766
  }).then(async (Response) => {
2765
2767
  if (Response.redirected) {
2766
2768
  location.href = Response.url;
@@ -2801,13 +2803,15 @@ async function main() {
2801
2803
  ErrorMessage.style.color = "red";
2802
2804
  ErrorMessage.innerText = "比赛已结束, 正在尝试像题目 " + rPID + " 提交";
2803
2805
  console.log("比赛已结束, 正在尝试像题目 " + rPID + " 提交");
2806
+ let o2Switch="&enable_O2=on";
2807
+ if(!document.querySelector("#enable_O2").checked)o2Switch="";
2804
2808
  await fetch("https://www.xmoj.tech/submit.php", {
2805
2809
  "headers": {
2806
2810
  "content-type": "application/x-www-form-urlencoded"
2807
2811
  },
2808
2812
  "referrer": location.href,
2809
2813
  "method": "POST",
2810
- "body": "id=" + rPID + "&language=1&" + "source=" + encodeURIComponent(CodeMirrorElement.getValue()) + "&" + "enable_O2=on"
2814
+ "body": "id=" + rPID + "&language=1&" + "source=" + encodeURIComponent(CodeMirrorElement.getValue()) + o2Switch
2811
2815
  }).then(async (Response) => {
2812
2816
  if (Response.redirected) {
2813
2817
  location.href = Response.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.50",
3
+ "version": "1.2.53",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {
@@ -1,24 +0,0 @@
1
- name: Check PR CI
2
-
3
- on:
4
- schedule:
5
- - cron: "*/10 * * * *"
6
-
7
- jobs:
8
- check-pr-ci:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions-cool/check-pr-ci@v1
12
- with:
13
- token: ${{ secrets.GITHUB_TOKEN }}
14
- # filter-label: 'check-ci'
15
- # filter-creator-authority: 'write'
16
- filter-head-ref: 'master, dev'
17
- filter-support-fork: true
18
- success-review: true
19
- success-review-body: 'PR passes all checks'
20
- success-merge: false
21
- conflict-review-body: 'PR has conflicts, please fix them first!'
22
- failure-review: 'REQUEST_CHANGES'
23
- failure-review-body: 'PR fails some checks'
24
- failure-close: false
package/CNAME DELETED
@@ -1 +0,0 @@
1
- ghpages.xmoj-bbs.tech