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

smzdm.com签到脚本在Violentmonkey中不工作 #1

Open
lzwsoar opened this issue Sep 4, 2018 · 0 comments
Open

smzdm.com签到脚本在Violentmonkey中不工作 #1

lzwsoar opened this issue Sep 4, 2018 · 0 comments

Comments

@lzwsoar
Copy link

lzwsoar commented Sep 4, 2018

测试环境是Violentmonkey + Chrome 67.0.3396.99 (Official Build) (64-bit),

第一个问题是https访问没有匹配到脚本,而且我这里使用http访问会自动跳转https。修改为
// @match http://*.smzdm.com/*
// @match https://*.smzdm.com/*
可修复此问题。

第二个问题,页面加载后执行到脚本会抛出异常,发现脚本代码会被放在function中通过call()执行,将脚本代码本身的闭包去掉可以修复此问题。

@lzwsoar lzwsoar changed the title smzdm.com签到脚本失效 smzdm.com签到脚本在Violentmonkey中不工作 Sep 4, 2018
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

1 participant