Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please explain it? #141

Open
rasbayri opened this issue Mar 24, 2023 · 3 comments
Open

Can you please explain it? #141

rasbayri opened this issue Mar 24, 2023 · 3 comments

Comments

@rasbayri
Copy link

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.

@rasbayri
Copy link
Author

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

@Lucky2307
Copy link
Contributor

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.

@Dezvoltare
Copy link

New issue here, there is no NFBR.a6G.Initializer in element tab of F12 console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants