Skip to content

Latest commit

 

History

History
 
 

Pagetual

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

☯️東方永頁機 v.1.9.37.109

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

Buy me a coffee if you get help💞

PayPal

Ko-fi

愛發電
donate reward
💬Join our Discord
📧Send me an email
Made with ❤️ by Hoothin

Pagetual User-defined rules cases

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 }, '*');
  1. 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} }, '*');
  1. 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