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
插入一段 script 标签是否支持给标签添加 type 属性? #1066
Comments
这样注入会有什么问题吗?js 注入还不支持,可以试试 html 协议:https://wproxy.org/whistle/rules/htmlAppend.html |
普通的 js 直接被 script 标签包裹嵌入没有问题,但是如果 js 代码中包含 import 之类的 es 代码,script 标签上需要带上 type="module" 才可以执行,否则嵌入的 js 执行就出错了。 |
下个版本加上,你先用 https://wproxy.org/whistle/rules/htmlAppend.html 嵌入 |
🙇♂️ |
重新安装 Whistle 并重启,新版可以通过 https://xxx js://xxx lineProps://module 也可以用来设置 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用方式:
如截图中的使用方式,会默认在 html 中添加一段 script 标签,但是似乎仅限于 script 标签,而不能为 script 标签添加 type、async 等属性
目前似乎还不支持?
https://github.com/avwo/whistle/blob/d8991cf569288e6979632477248ced28a46c9862/lib/inspectors/weinre.js#L9C5-L9C21
The text was updated successfully, but these errors were encountered: