Skip to content

Instantly share code, notes, and snippets.

@ahmetb
Created July 13, 2013 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmetb/5992192 to your computer and use it in GitHub Desktop.
Save ahmetb/5992192 to your computer and use it in GitHub Desktop.
clicks "Ask To Answer" Load More link a lot of times and finds people "Free to Ask" and clicks that button as well. I use that to get some initial free traction on my Quora questions.
var PAGE_LOAD_INTERVAL = 8000;
var TOTAL_PAGES = 30;
var VOTING_INTERVAL = 10*1000;
var k = 0;
var l = setInterval(function(){
$('.pager_next_link').trigger('click');
console.log('Loaded page ' + (++k));
}, PAGE_LOAD_INTERVAL);
setTimeout(function(){
clearInterval(l);
console.log('Finished loading peeps.');
var i = 0, j = 0;
$("a.action_button:contains('Free')").each(
function(){
var elm = $(this);
setTimeout(function(){
$(elm).trigger('click');
console.log('voted '+ (++j));
}, (++i)*VOTING_INTERVAL);
}
);
}, TOTAL_PAGES * PAGE_LOAD_INTERVAL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment