fix training status script to work for users without premium
This commit is contained in:
parent
0cea3d1481
commit
ec025c6c79
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Move Training Pets To Top
|
// @name Move Training Pets To Top
|
||||||
// @namespace https://hollymcfarland.com
|
// @namespace https://hollymcfarland.com
|
||||||
// @version 1.0
|
// @version 1.1
|
||||||
// @description At the three battledome training areas in Neopia, move pets currently in a course or waiting for input to the top of the list
|
// @description At the three battledome training areas in Neopia, move pets currently in a course or waiting for input to the top of the list
|
||||||
// @author monorail
|
// @author monorail
|
||||||
// @match https://www.neopets.com/pirates/academy.phtml?type=status
|
// @match https://www.neopets.com/pirates/academy.phtml?type=status
|
||||||
|
|
@ -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