UserScripts icon indicating copy to clipboard operation
UserScripts copied to clipboard

NexusMods - for when there's no Next button

Open Auditormadness9 opened this issue 1 year ago • 3 comments

The url of site https://www.nexusmods.com/fallout4/mods/?BH=3

Is your request related to a problem? Please describe. We already have a rule that works when there's a next button, but it doesn't work when there isn't one displayed but there are still multiple pages of results.

Describe the result you'd like with the rule Pagerize the remaining pages even though there is no next button.

Custom rule you've tried Only the one that works with Next.

Additional context image

Auditormadness9 avatar Apr 16 '24 22:04 Auditormadness9

Assign the value of //li[a[contains(@class,"page-selected")]]/following-sibling::li[1]/a to the nextLink.

hoothin avatar Apr 18 '24 11:04 hoothin

Assign the value of //li[a[contains(@class,"page-selected")]]/following-sibling::li[1]/a to the nextLink.

didn't work but li:has(a.page-selected) + li > a did, thanks!

AuditorM9 avatar Apr 18 '24 19:04 AuditorM9

It's nothing. In JSON, double quotes must be escaped. For xpath, You can use "nextLink": "//li[a[contains(@class,\"page-selected\")]]/following-sibling::li[1]/a".

hoothin avatar Apr 19 '24 00:04 hoothin