projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca6b2c3
)
weibo.js
author
Chris
<chris@roojs.com>
Tue, 21 Jan 2014 02:51:39 +0000
(10:51 +0800)
committer
Chris
<chris@roojs.com>
Tue, 21 Jan 2014 02:51:39 +0000
(10:51 +0800)
weibo.js
patch
|
blob
|
history
diff --git
a/weibo.js
b/weibo.js
index
2ad536f
..
82ef2a3
100644
(file)
--- a/
weibo.js
+++ b/
weibo.js
@@
-40,7
+40,9
@@
function run_weibo(u, p){
// simulating click event to login ....
var elss = document.querySelectorAll('a[node-type]');
- var event = document.createEvent("HTMLEvents");
+ var event = document.createEvent("MouseEvents");
+ event.initEvent("click", false, true);
+ event.synthetic = true;
event.eventType = "click";
for (i = 0; i < elss.length; i++) {
if (elss[i].hasAttribute('node-type')) {