diff --git a/Update.json b/Update.json index 96f64b2d..9c4a525a 100644 --- a/Update.json +++ b/Update.json @@ -3124,6 +3124,17 @@ } ], "Notes": "#860 ..." + }, + "2.4.5": { + "UpdateDate": 1759487413226, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 869, + "Description": "Update CSS selector (again...)" + } + ], + "Notes": "为什么这个破东西老是换位置" } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 69dfca7f..f10f0fa4 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 2.4.4 +// @version 2.4.5 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen @@ -1726,6 +1726,9 @@ async function main() { if (SubmitLink == null) { //为什么这个破东西老是换位置 SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(7)'); } + if (SubmitLink == null) { //tmd又换位置 + SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(8)'); + } let SubmitButton = document.createElement('button'); SubmitButton.id = 'SubmitButton'; SubmitButton.className = 'btn btn-outline-secondary'; diff --git a/package.json b/package.json index 169470fd..a3ac3141 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "2.4.4", + "version": "2.4.5", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": {