e-hentai preload next page

preload and cache next page image for faster loading

Zoznam verzií skriptu, ktorých kód bol aktualizovaný. Zobraziť všetky verzie.

  • v0.1.0 28.06.2024
    • minor UI changes, and cache indicator on top of the image:
      • cache indicator shows when the userscript is caching the image, or the image is cached. you can see this on top right, above the hentai page
      • settings UI now can be toggled by a button on top left, above the hentai page
    • rehaul the caching system by fetching the images directly instead relying on the browser's . this improves image caching A LOT by forcing it to download images, compared to previous solution, using the browser's caching, which is unreliable because they may be cleared automatically by the browser, and/or fail to load
      • also made possible using GM_fetch by trim21 on github. thanks for your hard work!
    • users can now save their cache into their userscript storage! this is called "saved cache" or "persistent cache". next time the user loads the same hentai pages, the userscript will load the previous saved cache, making it faster!
      • but be careful, as going too overbroad can take up lots of storage space! (i know this well from experience :P)

    oh well, it was a big update to work on (and a lot of materials to work with~)

    i hope you guys enjoy!

  • v0.0.3 29.01.2024
    • modified greasyfork description and userscript description, trying to differentiate "downloading" and "preloading"
    • added owowed sign-off
  • v0.0.2 28.01.2024
    • changed the preload image execution by observing changes in the page image, and then checks for the current page number, instead of listening for event from the "next" anchor element. this method is far more efficient than the previous one
    • rewrote the code by staying away from bad function recursion code, and directly mutate variables instead
    • improved greasyfork description
    • minor modification to the userscript metadata, specifically consistent spacing and changing "namespace" value
  • v0.0.1 28.01.2024