Skip to content

iMaxTomas/Super-preloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icon

Build Status Netlify Status Buy Me a Coffee

Super-preloader

Installation and Document

Document Installation
Netlify greasyfork
Github Github

Compatibility

Firefox + violentmonkey/greasemonkey
Firefox + Violentmonkey/Greasemonkey 4
Chrome / Microsoft Edge Dev+ violentmonkey
Chrome/Microsoft Edge Dev + Tampermonkey
Microsoft Edge Dev+ greasemonkey
Waterfox + Greasemonkey 3/4
Firefox > ESR Chrome > 45 , Edge Dev Channel Latest
  • Script is tested under:

    • Firefox latest + Violentmonkey (Recommended combination)
    • Microsoft Edge Dev + Tampermonkey
    • Waterfox 56.3 + Greasemonkey 4.9
    • Chrome 48 + Tampermonkey
  • Known issue:

    • Firefox < 62 + Tampermonkey is incompatible with the script < v6.9.3 because of incompatability between Tampermonkey and core-js@3 because Tampermonkey/tampermonkey#834 . The solution is to bundle it with core-js@2.
    • Except GM4, all other userscript manger don't send cookie for xhr request. VM fixes this in PR: violentmonkey/violentmonkey#743, which is not released yet. I currently add document.cookie manually to the header, which has some limitations. -- Dec 18th 2019

Introduction

A gm script for auto loading paginated web pages. It will join pages together based on the rules.

The script is forked from https://greasyfork.org/en/scripts/10433-super-preloaderplus-one. However, it is refactored since v6.8.xx. Now we are embracing new techniques by using ES6 and webpack to pack the script.

Thanks for the original author swdyh && ywzhaiqi && NLF. swdyh is still actively improving rules and developping the extension version,AutoPagerize.

This userscript exists because someone needs to maintain the rules for Chinese and English users since swdyh's rules are mainly for Japanese websites. Don't be afraid of the fact that most feedbacks are in Chinese. I would like to add rules for English users if I could. Feel free to leave feedback.

Please leave feedback at Greasefork page or Github issue

Development Guide

I appreciate anyone who is interested in devoting their time to the development. You can contribute by either writing rules or improving the script.

To write rules

  1. Check the Document and learn the structure of the rule
  2. Modify file dist/mydata.json for simple json rules
  3. Modify file src/index.js for complex js rules

To improve the script

  1. Get familiar with javascript, xpath/css selector and node js
  2. Clone the whole repo and install modules by npm install
  3. Make your modifications
  4. Run npm run test to do a static check
  5. Run npm run dev to launch webpack-dev-server and install the script from http://localhost:8081/Super_preloaderPlus_one_New_dev.user.js.
  6. Test the script. You need to make sure functions like updating rules work and the script works on the following websites
  7. Run npm run publish:patch to bump up the version
  8. Commit and submit pull request!

Note:

  1. You shouldn't commit changes of package.json, package-lock.json, and .eslintrc.json.
  2. I won't check the PR until travis ci test passes. You can simulate travis ci test locally by running npm run:test and npm run docs:build.

Check more at Document

Contributers

MachX
MachX

💻 🎨 🖋 👀
suchunchen
suchunchen

💻 🖋
YFdyh000
YFdyh000

💻 🎨

Donation

It takes time and patiency to maintain the project (beacure there are 👎 websites like JD). If you like my work, a donation is welcomed. This will keep my passion to continue developing. 😆

Buy Me a Coffee

Thanks to the following donors:

  • loveqianool (1st donor)

License

GPLv3

This program is licensed under GNU General Public License Version 3 or later.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Userscript to enable autopagerizing as well as preloading

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.2%
  • Other 0.8%