machsix / Super-preloader

Userscript to enable autopagerizing as well as preloading
https://machsix.github.io/Super-preloader/Super_preloaderPlus_one_New.user.js
GNU General Public License v3.0
575 stars 83 forks source link

Returning single pageElement when multiple available in response #490

Closed narcolepticinsomniac closed 3 years ago

narcolepticinsomniac commented 3 years ago

Chromium & Firefox stable SPL 6.15.8 with or w/out adblock TM beta/GreaseMonkey

Example rule and URL:

  {
    "name": "snahp",
    "url": "^https?://(www\\.)?snahp\\.it.*",
    "pageElement": "css;.post-list > .post-row",
    "exampleUrl": "https://snahp.it/category/hd-movies",
    "nextLink": "css;link[rel=next]",
    "autopager": {
        "separator": false
    }
  }

On a side note, I don't even understand how to reliably specify whether a navigation bar is shown anymore. There's now a "Navigation bar" checkbox in settings, enabled by default, which apparently ignores "separator": false. Disabling it isn't persistent, as it seems to re-enable itself when the browser cache is cleared.

Killogy commented 3 years ago

@narcolepticinsomniac

 {
    "name": "snahp",
    "url": "^https?://(www\\.)?snahp\\.it.*",
    "nextLink": "css;.nextpostslink",
    "pageElement":"css;#grid-wrapper",
    "exampleUrl": "https://snahp.it/category/hd-movies",
    "autopager": {
        "separator": false
    }
    }