xuzhengyi1995/Manga_downloader

Can you please explain it?

Opened this issue · 2 comments

I have done this millions of times and I still don't get it plz I'm a dummy

If this not work and show 'Uncaught TypeError: Cannot read properties of undefined (reading 'menu') at :1:54', it means BW has updated the js, you can try to find it in the console, just try NFBR.a6G.Initializer.*.menu is not undefined and the * is the new object name; Or you can just file a bug.

What about adding support to ebookjapan.yahoo.co.jp? Would you want to make it?

For the error, it seems to mean that the JS version has changed. Here's what you need to do to find the correct one:

  1. Go to the reader page
  2. Open the console (F12), and type NFBR.a6G.Initializer
  3. Find the child that has the 'menu' child in it. It is currently 'L7v'
    image
  4. Change this line in website_actions/bookwalker_*_actions.py (whichever you use)
    'NFBR.a6G.Initializer.Z4p.menu.options.a6l.moveToPage(%d)' % page)

    'NFBR.a6G.Initializer.Z4p.menu.options.a6l.moveToPage(%d)' % page)
    to
    'NFBR.a6G.Initializer.L7v.menu.options.a6l.moveToPage(%d)' % page)

Now it should work fine

I'm actually trying out a way to automatically detect the correct key, so hopefully in the future it won't run into this issue.