Infiniscroll on web pages using a large database of rules. A fully reworked fork of the original extension.
GPL-3.0 License
Fully reworked to reduce memory consumption and increase performance:
*
pattern that matches all sites may be used to restore the old behavior) in the options or the popup. This is because these rules (currently there are three) seem to be useless as the popular sites all have a custom rule, while breaking the page layout on less popular sites a bit too often.*
at the end. The original extension has been incorrectly treating all non-regexp URLs as prefixes.
http://foo.com/bar
- this exact URLhttp://foo.com/bar*
- URLs that start with http://foo.com/bar
*.foo.com/bar
- URLs that end in foo.com/bar
*://*.foo.com/bar*
- URLs that contain foo.com/bar
anywhereGM_AutoPagerizeNextPageDoc
Fired after downloading the new page so that other scripts may alter it like this:
document.addEventListener('GM_AutoPagerizeNextPageDoc', e => {
const doc = e.relatedTarget;
const url = doc.URL;
for (const el of doc.querySelectorAll('img[alt][title]')) {
el.loading = 'lazy';
}
});
wedata.net
- used to update the database of pagination rules from http://wedata.net/databases/AutoPagerize/items_all.json which is stripped of everything except XPath selectors for the page elements and RegExp for the page URL<all_urls>
- required to paginate while you browse according to the database of rules (technically, to find the "next page" and "page body" elements)alarms
- to schedule a database updatecontextMenus
- to add an "On/off" item to the context menu of the extension icon in the browser toolbaroffscreen
- ManifestV3 way of handling DOM/XHR in the background scriptscripting
- to run the pagination script in the matching tabsstorage
- to store the options of the extensiontabs
- most notably to restart the paging functionality on extension update, also to notify the tabs that match the URL that you've just manually excluded in the popupwebNavigation
- to schedule a pagination check when you navigate to a new URLChrome allows you to easily limit the extension so it can access only a few sites:
chrome://extensions
details page for this extensionhttp://wedata.net
to keep the database of rules up-to-date.