xmoj-script 1.1.49 → 1.1.52
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.
- package/.github/workflows/Prerelease.yml +1 -1
- package/.github/workflows/Release.yml +1 -1
- package/.github/workflows/merge.yml +4 -4
- package/.idea/XMOJ-Script.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/Update.json +37 -0
- package/XMOJ.user.js +5 -4
- package/package.json +1 -1
@@ -1,13 +1,13 @@
|
|
1
|
-
name:
|
1
|
+
name: Merge changes to extern-contrib
|
2
2
|
on:
|
3
3
|
push:
|
4
4
|
branches:
|
5
|
-
-
|
5
|
+
- dev
|
6
6
|
workflow_dispatch:
|
7
7
|
jobs:
|
8
8
|
create_pull_request:
|
9
9
|
name: 'Create PR'
|
10
|
-
if: github.ref == 'refs/heads/
|
10
|
+
if: github.ref == 'refs/heads/extern-contrib'
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
permissions:
|
13
13
|
pull-requests: write
|
@@ -27,7 +27,7 @@ jobs:
|
|
27
27
|
|
28
28
|
if (pulls.data.length < 1) {
|
29
29
|
await github.rest.pulls.create({
|
30
|
-
title: '
|
30
|
+
title: 'Merge dev into extern-contrib',
|
31
31
|
owner: owner,
|
32
32
|
repo: repo,
|
33
33
|
head: context.ref,
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="WEB_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager">
|
4
|
+
<content url="file://$MODULE_DIR$">
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
|
+
</content>
|
9
|
+
<orderEntry type="inheritedJdk" />
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
+
</component>
|
12
|
+
</module>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/XMOJ-Script.iml" filepath="$PROJECT_DIR$/.idea/XMOJ-Script.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
package/Update.json
CHANGED
@@ -1354,6 +1354,43 @@
|
|
1354
1354
|
}
|
1355
1355
|
],
|
1356
1356
|
"Notes": "No release notes were provided for this release."
|
1357
|
+
},
|
1358
|
+
"1.1.50": {
|
1359
|
+
"UpdateDate": 1710576508444,
|
1360
|
+
"Prerelease": false,
|
1361
|
+
"UpdateContents": [
|
1362
|
+
{
|
1363
|
+
"PR": 485,
|
1364
|
+
"Description": "and I am so frustrated I actually make another code contribution"
|
1365
|
+
},
|
1366
|
+
{
|
1367
|
+
"PR": 486,
|
1368
|
+
"Description": "fix showsource"
|
1369
|
+
}
|
1370
|
+
],
|
1371
|
+
"Notes": "No release notes were provided for this release."
|
1372
|
+
},
|
1373
|
+
"1.1.51": {
|
1374
|
+
"UpdateDate": 1710641069919,
|
1375
|
+
"Prerelease": true,
|
1376
|
+
"UpdateContents": [
|
1377
|
+
{
|
1378
|
+
"PR": 491,
|
1379
|
+
"Description": "Update ticket email"
|
1380
|
+
}
|
1381
|
+
],
|
1382
|
+
"Notes": "No release notes were provided for this release."
|
1383
|
+
},
|
1384
|
+
"1.1.52": {
|
1385
|
+
"UpdateDate": 1711848297024,
|
1386
|
+
"Prerelease": true,
|
1387
|
+
"UpdateContents": [
|
1388
|
+
{
|
1389
|
+
"PR": 493,
|
1390
|
+
"Description": "Make the dismiss button work + improve showsource"
|
1391
|
+
}
|
1392
|
+
],
|
1393
|
+
"Notes": "No release notes were provided for this release."
|
1357
1394
|
}
|
1358
1395
|
}
|
1359
1396
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.52
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -21,7 +21,7 @@
|
|
21
21
|
// @grant GM_setValue
|
22
22
|
// @grant GM_getValue
|
23
23
|
// @homepage https://www.xmoj-bbs.tech/
|
24
|
-
// @supportURL https://
|
24
|
+
// @supportURL https://xmojscript.zohodesk.com/portal/zh/newticket
|
25
25
|
// @connect api.xmoj-bbs.tech
|
26
26
|
// @connect challenges.cloudflare.com
|
27
27
|
// @connect cppinsights.io
|
@@ -934,6 +934,7 @@ async function main() {
|
|
934
934
|
let ToastDismissButton = document.createElement("button");
|
935
935
|
ToastDismissButton.type = "button";
|
936
936
|
ToastDismissButton.classList.add("btn", "btn-secondary", "btn-sm", "me-2");
|
937
|
+
ToastDismissButton.setAttribute("data-bs-dismiss", "toast");
|
937
938
|
ToastDismissButton.innerText = "忽略";
|
938
939
|
ToastDismissButton.addEventListener("click", () => {
|
939
940
|
RequestAPI("ReadMailMention", {
|
@@ -3567,7 +3568,7 @@ int main()
|
|
3567
3568
|
.then((Response) => {
|
3568
3569
|
return Response.text();
|
3569
3570
|
}).then((Response) => {
|
3570
|
-
Code = Response;
|
3571
|
+
Code = Response.replace("\n<!--not cached-->\n", "");
|
3571
3572
|
});
|
3572
3573
|
} else {
|
3573
3574
|
if (localStorage.getItem("UserScript-LastUploadedStdTime") === undefined || new Date().getTime() - localStorage.getItem("UserScript-LastUploadedStdTime") > 1000 * 60 * 60 * 24 * 30) {
|
@@ -4608,4 +4609,4 @@ int main()
|
|
4608
4609
|
}
|
4609
4610
|
}
|
4610
4611
|
|
4611
|
-
main();
|
4612
|
+
main();
|