xmoj-script 1.2.9 → 1.2.10
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 +11 -0
- package/XMOJ.user.js +28 -28
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -1781,6 +1781,17 @@
|
|
1781
1781
|
}
|
1782
1782
|
],
|
1783
1783
|
"Notes": "No release notes were provided for this release."
|
1784
|
+
},
|
1785
|
+
"1.2.10": {
|
1786
|
+
"UpdateDate": 1722425862935,
|
1787
|
+
"Prerelease": true,
|
1788
|
+
"UpdateContents": [
|
1789
|
+
{
|
1790
|
+
"PR": 574,
|
1791
|
+
"Description": "disable tidytable"
|
1792
|
+
}
|
1793
|
+
],
|
1794
|
+
"Notes": "No release notes were provided for this release."
|
1784
1795
|
}
|
1785
1796
|
}
|
1786
1797
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.10
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -289,33 +289,33 @@ let TimeToStringTime = (Time) => {
|
|
289
289
|
* @param {HTMLElement} Table - The table element to be tidied up.
|
290
290
|
*/
|
291
291
|
let TidyTable = (Table) => {
|
292
|
-
if (UtilityEnabled("NewBootstrap") && Table != null) {
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
}
|
292
|
+
// if (UtilityEnabled("NewBootstrap") && Table != null) {
|
293
|
+
// Table.className = "table table-hover";
|
294
|
+
// Table.querySelector("thead > tr").removeAttribute("class");
|
295
|
+
// Table.querySelector("thead > tr").removeAttribute("align");
|
296
|
+
// Table.querySelector("thead > tr").innerHTML = Table.querySelector("thead > tr").innerHTML.replaceAll("td", "th");
|
297
|
+
// let Temp = Table.querySelector("thead > tr").children;
|
298
|
+
// for (let j = 0; j < Temp.length; j++) {
|
299
|
+
// let Width = Temp[j].style.width;
|
300
|
+
// Temp[j].removeAttribute("style");
|
301
|
+
// Temp[j].style.width = Width;
|
302
|
+
// Temp[j].removeAttribute("onclick");
|
303
|
+
// Temp[j].removeAttribute("align");
|
304
|
+
// }
|
305
|
+
// Table.querySelector("tbody").className = "table-group-divider";
|
306
|
+
// Temp = Table.querySelector("tbody").children;
|
307
|
+
// for (let j = 0; j < Temp.length; j++) {
|
308
|
+
// Temp[j].removeAttribute("align");
|
309
|
+
// let Temp2 = Temp[j].querySelectorAll("*");
|
310
|
+
// for (let k = 0; k < Temp2.length; k++) {
|
311
|
+
// Temp2[k].classList.remove("left");
|
312
|
+
// Temp2[k].classList.remove("center");
|
313
|
+
// if (Temp2[k].className == "") {
|
314
|
+
// Temp2[k].removeAttribute("class");
|
315
|
+
// }
|
316
|
+
// }
|
317
|
+
// }
|
318
|
+
// }
|
319
319
|
};
|
320
320
|
let UtilityEnabled = (Name) => {
|
321
321
|
if (localStorage.getItem("UserScript-Setting-" + Name) == null) {
|