fix training status script to work for users without premium
This commit is contained in:
parent
0cea3d1481
commit
943de7381d
|
|
@ -17,7 +17,7 @@ All of my scripts that have been approved by the /r/neopets Discord mod team as
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
## [Move Training Pets To Top](https://git.hollymcfarland.com/monorail/NeopetsUserscripts/raw/branch/main/scripts/move-training-pets-to-top.user.js) ✅
|
## [Move Training Pets To Top](https://git.hollymcfarland.com/monorail/NeopetsUserscripts/raw/branch/main/scripts/move-training-pets-to-top.user.js) ([Approved version](https://git.hollymcfarland.com/monorail/NeopetsUserscripts/raw/commit/91e72b22d2d508240da43239d24f4ee32d3c3931/scripts/move-training-pets-to-top.user.js) ✅)
|
||||||
|
|
||||||
On the status page for the Swashbuckling Academy, Mystery Island Training School, or Secret Ninja Training School\*, move any pets enrolled in a course (whether they're waiting for payment, actively training, or waiting for "course complete" confirmation) to the top of the list. Useful if your battledome pet happens to get sorted near the bottom by default, requiring you to scroll.
|
On the status page for the Swashbuckling Academy, Mystery Island Training School, or Secret Ninja Training School\*, move any pets enrolled in a course (whether they're waiting for payment, actively training, or waiting for "course complete" confirmation) to the top of the list. Useful if your battledome pet happens to get sorted near the bottom by default, requiring you to scroll.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ I assume it'll work there too? If someone let me know I'd appreciate it haha
|
||||||
}
|
}
|
||||||
|
|
||||||
// Table that shows each pet
|
// Table that shows each pet
|
||||||
const statusTable = document.querySelector(".content > p:nth-child(6) > table:nth-child(1) > tbody:nth-child(1)");
|
const statusTable = document.querySelector(".content tbody");
|
||||||
|
|
||||||
for (let [header, pet] of getPairs(statusTable.children)) {
|
for (let [header, pet] of getPairs(statusTable.children)) {
|
||||||
// Each "pet" here refers to a <tr> element representing that pet's status.
|
// Each "pet" here refers to a <tr> element representing that pet's status.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue