Actually, I tried using jquery + firefox + scratchpad to inject a fix on this, I got stuck on what to fire a click on, see my code below:
if i were to click on all the button
// that when the infinite load is triggered and the #timeline is modified,
//the script will still be active
$(document).on(“scroll”, function()) {
// The class name for all the buttons is .follow-button
$(document).find(“button.follow-button”).each(function(i,e) {
$(this).trigger(‘click’); //Trigger a click on all of them;
})
The above works perfectly but when you have already followed someone, it unfollow the person
to work around this i need a condition to skip such button;
$(document).scrollTop($("#timeline").height())
$(“document”).on(“scroll”, function() {
$(document).find(“button.follow-button)”).each(function(i,e) {
// alert("Triggered on " + i + " Element " + $(e).text());
// This is where the problem is, I dont know the condition to use, the button when
//inspected with js has the follow, following, pending, cancel and unfollow all in the same
//button. if I fire a click on the span.follow-text, it will not perform this action as it is not
//the button itself, please help no harm intended.
if ($(this).hasClass(".follow-combo")) { //fake condition
$(this).trigger(‘click’);
console.log($(this).offset.top + " from top");
// Scroll down a bit after each trigger
if (i > 6) {
$(document).scrollTop($(this).offset.top + 200)
}
}
})
})
please note that no harm intended, I just dont like clicking the follow button, wastes my time