東方永頁機 Wiki
Pagetual - Perpetual pages. Auto loading paginated web pages for 90% of all web sites !
https://raw.githubusercontent.com/hoothin/UserScripts/master/Pagetual/pagetualRules.json
[
{
"name":"yande",
"action":0,
"url":"^https:\/\/yande\\.re\/",
"pageElement":"ul#post-list-posts>li",
"nextLink":"a.next_page",
"css":".javascript-hide {display: inline-block !important;}"
},
{
"name":"beauty",
"url":"^https://www\\.jpmn8\\.com/",
"pageElement":"p>img"
},
{
"name":"xxgame",
"action":0,
"url":"^http://www\\.xxgame\\.net/chinese",
"pageElement":"div.layui-row>div.layui-col-md4:not(div:nth-child(5),div:nth-child(6),div:nth-child(7))",
"nextLinkByUrl":["(http://www\\.xxgame\\.net/chinese/?)(?:\\?page=|$)(\\d*)","$1?page={($2.0||1)+1}"]
}
]
Buy me a coffee if it helps you with PayPal.Me or BuyMeACoffee
Name of the target site
Author of this rule
Example url of this rule
Regexp of the url of target site
Sometimes the next link and page element will be inexistence, set this to true so you can select the rule just with url
0 means stop action when all matched
The time to wait for page ready when you are sure the url match the site, you can also use a js code which return a boolean to check if the page is ready instead
0 means xpath, 1 or undifined means css selector
0 means load url and insert to div, 1 means load by iframe so that js on page may action, 2 means force insert to bottom
Selector of next page link, disable when set to 0
If there is no next element, you can use this to generate a href from current url, [0] means RegExp string, [1] means replace string, you can use {} to eval simple code
Use this to eval js code and return target url of next page with doc (document of every page loaded)
Selector of main content which need to insert
Use this to eval js code and create the elements whatever you want to insert, a over([]) is needed to callback with elements array for insert
The attr of image which target to real src
Add css so you can show some hided element
Which position you want to insert
1 means insert before, 2 means just append to the bottom of target
The js code to run only with current main page with document:(document of main page)
The js code to run after get response from next link, you can modify the response content and return it
The js code to run with every page inserted with doc:(document of every page loaded) and eles:(elements found with rule), run before inserted, you can trigger event like onView
The js code to run with every page inserted with doc:(document of every page loaded) and eles:(elements found with rule), run after inserted, you can add functions like click
Selector of load more button
Sleep time when get next page if site is limited
The multi-windowHeight which you can set to 2 or 3 while some sites load next page slowly
Point the page number with $p in current url, you can use{} to target result string from page number
Set to 1 so the title of next page will be shown on pagebar
The css selector or xpath of element which you want to click automatically
