Sagar Yadav
Sagar Yadav

Reputation: 1

Trying to create an autofollow javascript for Quora

I am trying to create an autofollow button for Quora website so that I can follow all the poeple I run while being on the following page of the profile i like.

Now, I have tried the following codes inside 'Custom JavaScript for websites' - a Google Chrome extension but nothing has worked so far.

Code 1:

<script type="text/javascript"> 
    $(document).ready(function(){ 
    $('.follow_button').trigger('click'); 
   });
</script>

Code 2:

<script type="text/javascript">
$(function(){
window.location.href = $('.follow_button with_count').attr('href');
});
</script>

As both the above codes have failed to click on the follow button that appears, what shall I do to achieve the desired result?

Upvotes: 0

Views: 261

Answers (1)

hromada.dan
hromada.dan

Reputation: 204

Try this one:

$('.Profile.ActionBar .follow_button').click()

Upvotes: -1

Related Questions