Created
November 3, 2012 19:08
-
-
Save ql-owo-lp/4008306 to your computer and use it in GitHub Desktop.
Automatically plus one! for Google+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var notif = 100; // +1数,100就是99+的效果了 | |
var plus_one = true; // true为+1,false为取消+1 | |
var po, clocker, more=document.querySelector('.a-n.Op.Ht'); | |
clocker = setInterval(function () { | |
if ((po=document.querySelectorAll('div[aria-pressed="'+(!plus_one)+'"][plus_plus="1"]')).length<notif) { | |
console.debug('拉取帖子中.. 等等啦!'); | |
more.click(); | |
} | |
else { | |
clearInterval(clocker); | |
for (var i=0;i<po.length;i++) | |
setTimeout((function (p) { | |
return function () { | |
p.click(); | |
} | |
})(po[i]), 100*i); | |
setTimeout(function () { | |
console.debug('主人! 全部都搞定了! 不过经常玩脱的话会被B的哦'); | |
}, 100*(po.length+1)); | |
} | |
}, 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment