ameboide / webcomic_reader

Webcomic Reader userscript at http://userscripts.org/scripts/show/59842
76 stars 68 forks source link

bato.to broken #48

Open Yoposoc opened 8 years ago

Yoposoc commented 8 years ago

bato.to just changed their url patterns.

hendrasz commented 8 years ago

Yup, not working right now since they changed the manga's page url.

TKW25 commented 8 years ago

Don't think it has anything to do with the url, they changed the reader's code entirely.

Lunarhawk commented 8 years ago

Use batoto daily, hope someone figures out a fix soon

munael commented 8 years ago

Yeah. Can someone knowledgeable try updating bato.to's rules entry in webcomic reader? I feel it could be made to work without changing any plugin-wide code.

Tmp341 commented 8 years ago

I think batoto changed to user only mode, because manga downloaders started to use batoto username and password.

Lunarhawk commented 8 years ago

Yeah you have to be logged in now to view stuff, dunno if that affects it at all tho to my understanding they basically redid the whole reader

munael commented 8 years ago

WCR, IIUC, does all its stuff client-side. The switch to user-mode-only shouldn't affect it at all, only the changes to the reader.

anka-213 commented 8 years ago

It seems like the problem is that bato.to is using ajax to fetch the content, so the image is not there yet when webcomic_reader tries to find it. I'll see if i can find a workaround.

hendrasz commented 8 years ago

Manga OnlineViewer's script works on batoto, but reading manga in one page is not really my preference. Maybe you can use their code as example for fetching the page.

anka-213 commented 8 years ago

That script works in a different way internally*, so I don't think I can use that.

By the way, what feature(s) from this script do you need/want for bato.to? Their new built in reader seems pretty competent.

*: It fetches all pages at the same time and grabs the list from the menu, instead of grabbing the link to the next page and going one page at a time. It also have delays everywhere to compensate for ajax, but that makes stuff slower (obviously).

shogunreaper commented 8 years ago

jdownloader seems to be able to grab all the files, maybe look at their code?

munael commented 8 years ago

Right now I miss the minimalist mode the most. Also the ability to quickly page forward and backward by clicking on the image (bato.to ATM only goes forward; although it's now much faster than its older load-on-click behavior).

anka-213 commented 8 years ago

I have an attempt at a solution now. You can try it at https://github.com/anka-213/webcomic_reader/raw/master/webcomic_reader.user.js.

It is kind of experimental, so please tell me if it breaks something.

hendrasz commented 8 years ago

so far it works fine for me

Tmp341 commented 8 years ago

@anka-213 So, no username and password required for your solution?

anka-213 commented 8 years ago

@Tmp341 Nope, no login required. I'm not sure what the difference is if you are logged in, but I didn't notice any restrictions.

shogunreaper commented 8 years ago

@anka-213

well you need to be logged in to see the links to the older chapters, only ones from the last 2 weeks or so show up to people not logged in.

though it's not like the links change so if you know them anyone can view it.

anka-213 commented 8 years ago

@shogunreaper As long as you have a link to one chapter, you can follow the links (or quick chapter navigation) back to the beginning, it seems. But if you don't find any chapter, it seems hard to read anything at all.

Lunarhawk commented 8 years ago

Looks to be working fine here, thanks for the fix.

tenkuu commented 8 years ago

The script stops working if I navigate to another page or chapter via the navigation bar. i.e. the .moderation_bar

anka-213 commented 8 years ago

@tenkuu Yes. Or more specifically, it doesn't actually navigate to the new page, it just updates the url. This is a known issue. A workaround is to press enter in the url bar after using the navigation bar.

munael commented 8 years ago

Latest script version, running on latest Chrome version (as of this post) (without Tampermonkey), is completely broken with bato.to.

Minimalistic mode doesn't work unless I open the settings window and 'save' again with 'minimalistic' option set. This makes it look like the mode is turned on but in fact you can't advance pages in either direction (both ways the counter is '0...').

Sometimes the url just changes to 'bato.to/reader' and nothing shows.

In normal mode none of the controls actually do anything. The configuration buttons for webcomic-reader show at the bottom of the page but only "Webcomic Reader - Settings" and "Webcomic Reader - Disable for this site" show up. No bookmarks button or a chap/page selector at the bottom, etc.

anka-213 commented 8 years ago

@Enamex Just to be clear, amiboide's latest version or mine?

munael commented 8 years ago

@anka-213 Well, that was confusing haha. I only tried the repo's posted script (updated '10 months ago') so amiboide's, I guess.

Trying yours now (" https://github.com/anka-213/webcomic_reader/raw/master/webcomic_reader.user.js ").