Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

可不可以添加js注入功能 #96

Open
cn-kali-team opened this issue Apr 25, 2019 · 1 comment
Open

可不可以添加js注入功能 #96

cn-kali-team opened this issue Apr 25, 2019 · 1 comment

Comments

@cn-kali-team
Copy link

Description

就是这样:我在使用wechatircd的时候,他需要在页面注入一段js代码。

var script = document.createElement('script')
script.src = 'https://127.0.0.1:9000/injector.js'
document.getElementsByTagName('head')[0].appendChild(script)
  • 然后我在控制台里粘贴注入后,微信就发不了信息了,一直在转,显示正在获取最近的聊天...。
    控制台提示:
index_ad43596.js:5 Uncaught TypeError: angular.isString is not a function
    at Object.htmlEncode (index_ad43596.js:5)
    at Object.form (index_ad43596.js:5)
    at Object.loginout (index_ad43596.js:5)
    at Object.<anonymous> (index_ad43596.js:3)
    at c (vendor_0b8a6dd.js:3)
    at Object.fireWith [as resolveWith] (vendor_0b8a6dd.js:3)
    at n (vendor_0b8a6dd.js:4)
  • 在浏览器网页注入是没有问题的,我跟进去觉得是表情那里冲突了。

Specifications

  • Version of Electron (run $ electron --version): v4.1.4

  • OS: Arch

  • Stack trace from the error message (if any)

  • 要是你这个和irc的两个都能用就完美了。

@cn-kali-team
Copy link
Author

我找到了这个https://github.com/zTrix/electronic-wechatircd/blob/master/README.md
但是你的是Arch源里有,安装和更新都比较方便,还是希望合并一下,多谢!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant