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

【说明】目前 violentmonkey 无法在 nhentai 上运行任何非 @run-at document-start 的脚本 #3

Closed
Tsuk1ko opened this issue Mar 23, 2020 · 0 comments · Fixed by #4

Comments

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Mar 23, 2020

nhentai 在其页面 js 中将Date类进行了封装

这一操作的后果就是Date.now()方法没了,而 violentmonkey 在注入脚本的时候恰好会用到这一方法,应该是取时间戳做 ID 之类的,结果就会出错

也就是说目前所有的站点都可以通过删除Date.now()方法来反 violentmonkey

@run-at document-start虽然可以避免注入出错,但会对脚本逻辑造成影响,而且我改了很久也没能让它正常的跑起来,要不然就还是会出Date.now()错误

@Tsuk1ko Tsuk1ko pinned this issue Mar 23, 2020
@Tsuk1ko Tsuk1ko changed the title 【说明】目前 violentmonkey 无法在 nhentai 上运行任何脚本 【说明】目前 violentmonkey 无法在 nhentai 上运行任何非 @run-at document-start 的脚本 Mar 24, 2020
@z2n z2n mentioned this issue Apr 4, 2020
@Tsuk1ko Tsuk1ko closed this as completed Apr 4, 2020
@Tsuk1ko Tsuk1ko unpinned this issue Apr 4, 2020
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

Successfully merging a pull request may close this issue.

1 participant