diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 00000000..b58b603f
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 61cc3c10..5ffc32d6 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,8 +4,9 @@
-
-
+
+
+
@@ -15,11 +16,21 @@
+
+
+
@@ -27,6 +38,9 @@
"associatedIndex": 8
}
+
+
+
@@ -35,7 +49,7 @@
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
- "git-widget-placeholder": "dev",
+ "git-widget-placeholder": "boomzero/sync-inst-msg",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
@@ -63,7 +77,15 @@
1705754532454
-
+
+
+ 1705840682961
+
+
+
+ 1705840682961
+
+
@@ -82,6 +104,8 @@
-
+
+
+
\ No newline at end of file
diff --git a/Update.json b/Update.json
index f90fcd94..0a4d43fd 100644
--- a/Update.json
+++ b/Update.json
@@ -1005,6 +1005,17 @@
"Prerelease": false,
"UpdateContents": [],
"Notes": "No release notes were provided for this release."
+ },
+ "1.1.19": {
+ "UpdateDate": 1705841193051,
+ "Prerelease": true,
+ "UpdateContents": [
+ {
+ "PR": 372,
+ "Description": "use the same peram (?to_user) as xmoj"
+ }
+ ],
+ "Notes": "No release notes were provided for this release."
}
}
}
\ No newline at end of file
diff --git a/XMOJ.user.js b/XMOJ.user.js
index cd34627d..3f18b5d3 100644
--- a/XMOJ.user.js
+++ b/XMOJ.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
-// @version 1.1.18
+// @version 1.1.19
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
@@ -946,7 +946,7 @@ else {
ToastViewButton.classList.add("btn", "btn-primary", "btn-sm");
ToastViewButton.innerText = "查看";
ToastViewButton.addEventListener("click", () => {
- open("https://www.xmoj.tech/mail.php?other=" + MentionList[i].FromUserID, "_blank");
+ open("https://www.xmoj.tech/mail.php?to_user=" + MentionList[i].FromUserID, "_blank");
RequestAPI("ReadMailMention", {
"MentionID": Number(MentionList[i].MentionID)
}, () => { });
@@ -3568,7 +3568,7 @@ int main()
}
});
} else if (location.pathname == "/mail.php") {
- if (SearchParams.get("other") == null) {
+ if (SearchParams.get("to_user") == null) {
document.querySelector("body > div > div.mt-3").innerHTML = `
@@ -3612,7 +3612,7 @@ int main()
let Row = document.createElement("tr"); ReceiveTable.children[1].appendChild(Row);
let UsernameCell = document.createElement("td"); Row.appendChild(UsernameCell);
let UsernameSpan = document.createElement("span"); UsernameCell.appendChild(UsernameSpan);
- GetUsernameHTML(UsernameSpan, Data[i].OtherUser, false, "https://www.xmoj.tech/mail.php?other=");
+ GetUsernameHTML(UsernameSpan, Data[i].OtherUser, false, "https://www.xmoj.tech/mail.php?to_user=");
if (Data[i].UnreadCount != 0) {
let UnreadCountSpan = document.createElement("span"); UsernameCell.appendChild(UnreadCountSpan);
UnreadCountSpan.className = "ms-1 badge text-bg-danger";
@@ -3687,7 +3687,7 @@ int main()
`;
- GetUsernameHTML(ToUser, SearchParams.get("other"));
+ GetUsernameHTML(ToUser, SearchParams.get("to_user"));
let RefreshMessage = (Silent = true) => {
if (!Silent) {
MessageTable.children[1].innerHTML = "";
@@ -3700,7 +3700,7 @@ int main()
}
}
RequestAPI("GetMail", {
- "OtherUser": String(SearchParams.get("other"))
+ "OtherUser": String(SearchParams.get("to_user"))
}, async (ResponseData) => {
if (ResponseData.Success) {
ErrorElement.style.display = "none";
@@ -3744,7 +3744,7 @@ int main()
Send.children[0].style.display = "";
let ContentData = Content.value;
RequestAPI("SendMail", {
- "ToUser": String(SearchParams.get("other")),
+ "ToUser": String(SearchParams.get("to_user")),
"Content": String(ContentData)
}, (ResponseData) => {
Send.disabled = false;
diff --git a/package.json b/package.json
index 07df9dd2..e2063090 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "xmoj-script",
- "version": "1.1.18",
+ "version": "1.1.19",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {