nextLinkByJs (doc)

Use this to eval javaScript code and return target url of next page with doc (document of every page loaded)

Example:

"nextLinkByJs": "let n=doc.querySelector('a.curr+a');if(n)return n.href.replace(/^javascript:.*\\((\\d+)'\\);/,'$1_.html');"

The params doc means document of every page loaded, this code means checking the element "a.curr+a" and return a link from its href when it exists, stop otherwise.

You can construct a post data body using the #p{x=1&y=2} approach, just like returning https://www.xxx.com/pageAjax#p{x=1&y=2}.