Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we really need this? #663

Merged
merged 3 commits into from
Aug 8, 2024
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 @@ -2241,6 +2241,17 @@
}
],
"Notes": "minor release.<br>Enjoy!😀"
},
"1.2.42": {
"UpdateDate": 1723096626205,
"Prerelease": true,
"UpdateContents": [
{
"PR": 663,
"Description": "Do we really need this?"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
42 changes: 21 additions & 21 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 1.2.41
// @version 1.2.42
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -50,7 +50,7 @@ let PurifyHTML = (Input) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand Down Expand Up @@ -84,7 +84,7 @@ let GetRelativeTime = (Input) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand Down Expand Up @@ -113,7 +113,7 @@ let RenderMathJax = async () => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand Down Expand Up @@ -150,7 +150,7 @@ let GetUserInfo = async (Username) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand Down Expand Up @@ -198,7 +198,7 @@ let GetUserBadge = async (Username) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand Down Expand Up @@ -272,7 +272,7 @@ let GetUsernameHTML = async (Element, Username, Simple = false, Href = "https://
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand All @@ -290,7 +290,7 @@ let SecondsToString = (InputSeconds) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand All @@ -306,7 +306,7 @@ let StringToSeconds = (InputString) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand All @@ -333,7 +333,7 @@ let SizeToStringSize = (Memory) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand All @@ -356,7 +356,7 @@ let TimeToStringTime = (Time) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand All @@ -373,7 +373,7 @@ let TidyTable = (Table) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand All @@ -387,7 +387,7 @@ let UtilityEnabled = (Name) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand Down Expand Up @@ -433,7 +433,7 @@ let RequestAPI = (Action, Data, CallBack) => {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
};
Expand Down Expand Up @@ -480,7 +480,7 @@ class NavbarStyler {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand All @@ -495,7 +495,7 @@ class NavbarStyler {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand All @@ -516,7 +516,7 @@ class NavbarStyler {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand All @@ -543,7 +543,7 @@ class NavbarStyler {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand All @@ -561,7 +561,7 @@ class NavbarStyler {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand Down Expand Up @@ -590,7 +590,7 @@ class NavbarStyler {
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
Expand Down Expand Up @@ -5044,7 +5044,7 @@ int main()
} catch (e) {
console.error(e);
if (UtilityEnabled("DebugMode")) {
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\n\n Don't want to see this message? Disable DebugMode.");
alert("XMOJ-Script internal error!\n\n" + e + "\n\n" + "If you see this message, please report it to the developer.\nDon't forget to include console logs and a way to reproduce the error!\n\n Don't want to see this message? Disable DebugMode.");
}
}
}
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": "1.2.41",
"version": "1.2.42",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down