☯️東方永頁機 v.1.9.36.41
Pagetual - Perpetual pages. Auto loading paginated web pages for 90% of all web sites ! Wiki
https://raw.githubusercontent.com/hoothin/UserScripts/master/Pagetual/pagetualRules.json
[
{
"name":"beauty",
"url":"^https://www\\.jpmn8\\.com/",
"pageElement":"p>img"
},
{
"name":"Expreview",
"url":"^https://www\\.expreview\\.com/",
"loadMore":"span.load"
}
]
Buy me a coffee if it helps you💞 | ||
---|---|---|
PayPal.Me❤️ | BuyMeACoffee❤️ |
Name of the target site
"name": "Site name"
Author of this rule
"author": "Hoothin"
Example url of this rule
"example": "https://abc.com"
RegExp for the url of target site
Selector or xpath of next page link, disable when set to 0, you can let it to be a array to contains multiple next links.
Selector or xpath of main content which need to insert, you can let it to be a array to contains multiple page elements.
0 means stop action when all matched
Sometimes the next link or page element will be inexistence, set this to true so you can pin the rule just with url instead of finding elements by intelligent rules
Selector or xpath of the element which must include
Selector or xpath of the element which must not include
The time to wait for page ready when you are sure the url match the site, you can also use a javaScript code which return a boolean to check if the page is ready instead
The array["exist", "not exist"] contains "selector or xpath of element must exist (for some lazyload element)" & "selector or xpath of element must not exist (for some loading placeholder which need scroll into view to load)"
0 means load url and insert with static html, 1 means load by iframe so that dynamic javaScript code on page may effect, 2 means force insert iframe to bottom
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, [2] means selector or xpath of the element which must include, [3] means selector or xpath of the element which must not include, you can use {} to eval simple code
Use this to eval javaScript code and return target url of next page with doc (document of every page loaded)
Stop to load next page when matching this sign
Use this to eval javaScript code and create the elements whatever you want to insert, a over(eles) is needed to callback with elements array for insert
Selector or xpath of element which you want to replace with new one, can be a array
The attr of image which target to real src, can be set by ["lazysrc", "removeProp1,removeProp2"] to remove props of image
Add css so you can show some hidden element, start with "inIframe:" then this css will effect only in next iframe page
Which position you want to insert, you can let it to be a array to contains multiple positions.
1 means insert before, 2 means just append to the bottom of target
The javaScript code to run only once with current main page with document
The javaScript code to run after get response from URL of next link, you can modify the response content and return it
The javaScript 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 javaScript 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 (ms) when load next page if site is limited by time interval
The multi-windowHeight which you can set to 2 or 3 while some sites load next page slowly
The amount of pages for auto turning after page opening
Point the page number with $p in current url, you can use{} to eval result string from page number, like {$p*25+1}
The javaScript code to change pageBar, 0 means hide
Set to 1 so the document title of next page will be shown on pagebar
The css selector or xpath of element which you want to click automatically
Set to true to enable manual mode, then paging will stop, right arrow (or 'pagetual.next' event) will be bound to click next link.
Set to true to enable click mode, will automatically click the next link when scrolling to the end of the page.