diff --git a/Update.json b/Update.json index 88fb6561..3f3e9653 100644 --- a/Update.json +++ b/Update.json @@ -2241,6 +2241,17 @@ } ], "Notes": "minor release.
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." } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 638f8f7a..63ea0acb 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -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 @@ -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."); } } } @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } } @@ -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."); } } } @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } }; @@ -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."); } } } @@ -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."); } } } @@ -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."); } } } @@ -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."); } } } @@ -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."); } } } @@ -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."); } } } @@ -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."); } } } diff --git a/package.json b/package.json index 58cc7a3f..aa3ad910 100644 --- a/package.json +++ b/package.json @@ -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": {