Created
July 13, 2013 20:59
-
-
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.
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 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