anka-213 / webcomic_reader

Webcomic Reader userscript at
https://openuserjs.org/scripts/anka-213/Webcomic_Reader
MIT License
120 stars 27 forks source link

e-hentai/exhentai problems #63

Open azaziel666 opened 7 years ago

azaziel666 commented 7 years ago

So i have been experiencing problems of this script when i load pages on exhentai. When I preloaded around 70 pages, the browser suddenly reloads and my preloaded pages is gone. When i open debug mode, when the page suddenly reloads, this error shows up.

Error: first: match: /<a [^>]href = "([^\"]+)"([^<]|<[^\/]|<\/[^a])first/i[1

Error: last: match: /<a [^>]href = "([^\"]+)"([^<]|<[^\/]|<\/[^a])(last|latest|newest|today)/i[1]

Can someone please help?

DCTest1 commented 7 years ago

exhentai (&g-e.hentai) have precautions in place so that you don't load to many pages. it causes the script to reload the page, which in turn causes to reload 70 pages again.... you're caught in a endless loop. just set the pages preload to 5 and everything will be fine.

BTW: the same happens if you set the sideshow too fast. the site notices you load a lot of pages in a short amount of time, throws an error and causes the script to reload the page, deactivating the sideshow.

azaziel666 commented 7 years ago

hmm.. is there a way to deal with this. I like to preload many pages at the same time.

Is there a way to make the script preload pages slower so that the error doesnt come up?