anka-213 / webcomic_reader

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

Update Bato.to script #106

Closed Vorror closed 6 years ago

Vorror commented 6 years ago

The Bato.to script needs to be updated for the new owner/site.

The site behaves like an SPA(Vuejs) which means the page's javascript needs to be run so it can replace the img's href to the correct value(which allows xpath and WCR to find the image), so simply returning the next/prev page's url won't work. Luckily all the image urls are stored in global JS variable.

I'm not quite sure how to handle a dynamic page since you can't send the image url directly in a next/prev.

Vorror commented 6 years ago

Actually, I just got it working. Give me a day or two to clean up & test. Will open a PR

Vorror commented 6 years ago

The new bato.to randomly generates image urls. If an image starts with "ad" adblockers may block it. A heads up for anyone who runs into the issue.