Skip to content

Commit a015b5d

Browse files
authored
Merge pull request #869 from XMOJ-Script-dev/boomzero/cssSel
Update CSS selector (again...)
2 parents 491d3b6 + 7686431 commit a015b5d

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

Update.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,6 +3124,17 @@
31243124
}
31253125
],
31263126
"Notes": "#860 ..."
3127+
},
3128+
"2.4.5": {
3129+
"UpdateDate": 1759487413226,
3130+
"Prerelease": true,
3131+
"UpdateContents": [
3132+
{
3133+
"PR": 869,
3134+
"Description": "Update CSS selector (again...)"
3135+
}
3136+
],
3137+
"Notes": "为什么这个破东西老是换位置"
31273138
}
31283139
}
31293140
}

XMOJ.user.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name XMOJ
3-
// @version 2.4.4
3+
// @version 2.4.5
44
// @description XMOJ增强脚本
55
// @author @XMOJ-Script-dev, @langningchen and the community
66
// @namespace https://github/langningchen
@@ -1726,6 +1726,9 @@ async function main() {
17261726
if (SubmitLink == null) { //为什么这个破东西老是换位置
17271727
SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(7)');
17281728
}
1729+
if (SubmitLink == null) { //tmd又换位置
1730+
SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(8)');
1731+
}
17291732
let SubmitButton = document.createElement('button');
17301733
SubmitButton.id = 'SubmitButton';
17311734
SubmitButton.className = 'btn btn-outline-secondary';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xmoj-script",
3-
"version": "2.4.4",
3+
"version": "2.4.5",
44
"description": "an improvement script for xmoj.tech",
55
"main": "AddonScript.js",
66
"scripts": {

0 commit comments

Comments
 (0)