xmoj-script 1.1.42 → 1.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Update.json CHANGED
@@ -1276,6 +1276,17 @@
1276
1276
  }
1277
1277
  ],
1278
1278
  "Notes": "Popper.js is so stupid..."
1279
+ },
1280
+ "1.1.43": {
1281
+ "UpdateDate": 1707715028113,
1282
+ "Prerelease": true,
1283
+ "UpdateContents": [
1284
+ {
1285
+ "PR": 447,
1286
+ "Description": "fix the unpkg-cdn option"
1287
+ }
1288
+ ],
1289
+ "Notes": "No release notes were provided for this release."
1279
1290
  }
1280
1291
  }
1281
1292
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.42
3
+ // @version 1.1.43
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -402,6 +402,7 @@ let ServerURL = (UtilityEnabled("DebugMode") ? "https://ghpages.xmoj-bbs.tech/"
402
402
  let CurrentUsername = document.querySelector("#profile").innerText;
403
403
  CurrentUsername = CurrentUsername.replaceAll(/[^a-zA-Z0-9]/g, "");
404
404
  let IsAdmin = AdminUserList.indexOf(CurrentUsername) !== -1;
405
+
405
406
  async function main() {
406
407
  if (location.href.startsWith('http://')) {
407
408
  //use https
@@ -515,8 +516,8 @@ async function main() {
515
516
  }
516
517
  ];
517
518
  if (UtilityEnabled("UnpkgCdn")) {
518
- resources[0].src = 'https://unpkg.com/@popperjs/core@2.11.8/dist/umd/popper.min.js';
519
- resources[4].href = 'https://unpkg.com/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css';
519
+ resources[3].href = 'https://unpkg.com/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css';
520
+ resources[4].src = 'https://unpkg.com/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js';
520
521
  }
521
522
  let loadResources = async () => {
522
523
  let promises = resources.map(resource => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.42",
3
+ "version": "1.1.43",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {