Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3124,6 +3124,17 @@
}
],
"Notes": "#860 ..."
},
"2.4.5": {
"UpdateDate": 1759487413226,
"Prerelease": true,
"UpdateContents": [
{
"PR": 869,
"Description": "Update CSS selector (again...)"
}
],
"Notes": "为什么这个破东西老是换位置"
}
}
}
5 changes: 4 additions & 1 deletion XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down