{"action":"closed","issue":{"url":"https://api.github.com/repos/wechaty/wechaty/issues/21","repository_url":"https://api.github.com/repos/wechaty/wechaty","labels_url":"https://api.github.com/repos/wechaty/wechaty/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/wechaty/wechaty/issues/21/comments","events_url":"https://api.github.com/repos/wechaty/wechaty/issues/21/events","html_url":"https://github.com/wechaty/wechaty/issues/21","id":171974117,"number":21,"title":"wx.qq.com detect phantomjs and disabled it","user":{"login":"zixia","id":1361891,"avatar_url":"https://avatars.githubusercontent.com/u/1361891?v=3","gravatar_id":"","url":"https://api.github.com/users/zixia","html_url":"https://github.com/zixia","followers_url":"https://api.github.com/users/zixia/followers","following_url":"https://api.github.com/users/zixia/following{/other_user}","gists_url":"https://api.github.com/users/zixia/gists{/gist_id}","starred_url":"https://api.github.com/users/zixia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixia/subscriptions","organizations_url":"https://api.github.com/users/zixia/orgs","repos_url":"https://api.github.com/users/zixia/repos","events_url":"https://api.github.com/users/zixia/events{/privacy}","received_events_url":"https://api.github.com/users/zixia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wechaty/wechaty/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-18T18:54:25Z","updated_at":"2016-09-02T05:30:28Z","closed_at":"2016-09-02T05:30:28Z","body":"### Update 2016-9-1\r\n\r\nPhantomjs work well now, without any modification at wechaty side. \r\n\r\nIt seems like js code in wx upgraded again, and the accident that disable phantomjs is not the purpose (more like a compatible bug of checksum code run in phantomjs).\r\n\r\n--------------------------\r\n\r\nbefore fix, you can switch to chrome instead of phantomjs to use wechaty as usual.\r\n\r\n```shell\r\n$ WECHATY_HEAD=chrome node example/ding-dong-bot.js\r\n```\r\n\r\ndetail:\r\n\r\n> https://res.wx.qq.com/zh_CN/htmledition/v2/js/webwxApp2fd632.js\r\n```javascript\r\n    try {\r\n        var p = angular.bootstrap.toString().replace(/\\n\"use strict\";\\n/, \"\")\r\n          , h = m(p);\r\n        \"54c6b762ad3618c9ebfd4b439c8d4bda\" !== h && ($.getScript(\"https://tajs.qq.com/stats?sId=54802481\"),\r\n        location.href = \"https://wx.qq.com/?t=v2/fake\")\r\n    } catch (M) {}\r\n    angular.bootstrap(document, [\"webwxApp\"])\r\n```\r\n> https://wx.qq.com/?t=v2/fake\r\n\r\n### See Also\r\n\r\n- 临时修复非官方客户端，无法登陆提示 https://github.com/geeeeeeeeek/electronic-wechat/pull/319\r\n- https://github.com/zacyu/bilibili-helper/blob/3cc0e0d89a8279abadea6a6c8acf18877b5fa7bf/src/background.js#L961\r\n- [PhantomJS change webpage content before evaluating](http://stackoverflow.com/a/24838718/1123955)"}}
{"actor":{"display_login":"zixia"}}