Pagetual - Perpetual pages. Auto loading paginated web pages for 90% of all web sites !
🔧CONFIGURATION PAGE🔧
https://raw.githubusercontent.com/hoothin/UserScripts/master/Pagetual/pagetualRules.json
Pagetual User-defined rules cases
+ [TerenceCK pagetualRules](https://github.com/TerenceCK/pagetualRules/blob/main/happymh.json)
+ [Liu's-Pagetual-Rule](https://github.com/JPLiu/TestFiles/blob/main/UserScripts/Pagetual/Liu's-Pagetual-Rule.json)
+ [skofkyo pagetualRules_EX](https://github.com/skofkyo/AutoPager/blob/main/pagetualRules_EX.json)
+ [MovByte eToolsPagetual](https://gist.github.com/MovByte/a585456490d2e1c8ca815871db0887f7)
Call functionality from other extensions
1. **Immediately load next page**
> Please send the following message body:
```
command: "pagetual"
action: "nextPage"
detail: The number of pages to turn, 0 for unlimited, -1 to stop
```
> For example:
```
window.postMessage({ action: 'nextPage', command: 'patetual', detail: 5 }, '*');
```
2. **Set configuration**
> Please send the following message body:
```
command: "pagetual"
action: "config"
detail: The configuration item to be changed
```
> For example:
```
window.postMessage({ action: 'config', command: 'patetual', detail: {enableWhiteList: true} }, '*');
```
3. **Click load more button**
> Please send the following message body:
```
command: "pagetual"
action: "loadMore"
detail: null by default, 0 for unlimited checking load more button, -1 to stop
```
> For example:
```
window.postMessage({ action: 'loadMore', command: 'patetual', detail: 0 }, '*');
```
+ **Receive messages**
> When the next page is inserted, the following message body will be sent:
```
{
action: 'insert',
command: 'patetual'
}
```
> When the last page has been reached, the following message body will be sent:
```
{
action: 'lastPage',
command: 'patetual'
}
```
[
{
"name":"beauty",
"url":"^https://www\\.jpmn-demo\\.com/",
"pageElement":"p>img"
},
{
"name":"Expreview",
"url":"^https://www\\.expreview-demo\\.com/",
"loadMore":"span.load"
}
]
name
Name of the target site
"name": "Site name"
author
Author of this rule
"author": "Hoothin"
example
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. You may leave it empty because it will be generated automatically.
Selector or xpath of main content which need to insert, you can let it to be a array to contains multiple page elements. You may leave it empty because it will be generated automatically.
0 means stop action when all matched
Selector or xpath of the element which must include
Selector or xpath of the element which must not include
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
Selector of “load more” button you want to auto click