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

rust中注入脚本,脚本中有变量是如何处理的,const INIT_SCRIPT: &str = r#" document.getElementsByClassName('j_data_loginAccount')[0].value = account document.getElementsByClassName('j_data_loginPass')[0].value = account "#; #28

Open
tenghuanjun opened this issue Apr 18, 2023 · 3 comments

Comments

@tenghuanjun
Copy link

No description provided.

@Ya-hui
Copy link

Ya-hui commented May 21, 2023

请问解决了吗? 我也是加载了一个第三方窗口获取登录后的cookie, 但是注入的脚本不知道怎么和rust后端通信

@lencx
Copy link
Owner

lencx commented May 22, 2023

注入的脚本会在窗口初始化时加载,加载后的脚本和各类浏览器插件脚本没有任何区别。

@Ya-hui
Copy link

Ya-hui commented May 23, 2023

确实没想到一个太好的思路, 启动一个websocket进行通讯吗 这样感觉有太笨重了

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