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

cocomanhua 下載失敗 #294

Closed
rickchen16 opened this issue Dec 6, 2020 · 2 comments
Closed

cocomanhua 下載失敗 #294

rickchen16 opened this issue Dec 6, 2020 · 2 comments

Comments

@rickchen16
Copy link

https://www.cocomanhua.com/15335/
下載會出現
node_vm2.VMError: setInterval is not defined
這個錯誤

@rickchen16
Copy link
Author

rickchen16 commented Apr 4, 2021

研究了一下
有2個錯誤

  1. node_vm2看來不能用setInterval 這類的scheduling functions
    oh.py的javascript補了一行const setInterval = console.log;看來可以避開
  2. 接著會撞到node_vm2.VMError: window[__Oxb02b6[28]] is not a function
    window[__Oxb02b6[28]]對應的值為addEventListener
    對應的javascript應該是
    window[__Oxb02b6[0x1c]](__Oxb02b6[0x1a], (_0xb51bx13)=>{
    if (_0xb51bx13[__Oxb02b6[0x1b]][__Oxb02b6[0x18]]) {
    devmodedetect()
    }
    }
    );
    不知道為什麼不能用,猜測是因為const window = global;後的關係
    看了一下這個應該是處理鍵盤和滑鼠事件,下載漫畫應該不需要
    直接取代掉
    oh.py裡改為str(scripts).replace('window[__Oxb02b6[0x1c]]', 'console.log')

以上2個patch後可以下載囉

@eight04
Copy link
Owner

eight04 commented Aug 18, 2021

Move to #306

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

2 participants