Skip to content

Instantly share code, notes, and snippets.

@ql-owo-lp
Created November 3, 2012 19:08
Show Gist options
  • Save ql-owo-lp/4008306 to your computer and use it in GitHub Desktop.
Save ql-owo-lp/4008306 to your computer and use it in GitHub Desktop.
Automatically plus one! for Google+
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