title: TypeError: Cannot read property 'click' of null
body: <p>I have been mass following / unfollowing / favoriting / unfavoriting on twitter with these codes ;</p>
  
  <pre><code>$('button.follow-button').click();
  $('button.ProfileTweet-actionButtonUndo').click();
  $('a.favorite').click();
  </code></pre>
  
  <p>I found some not-working codes online and tried to fix, so they are nearly working now.
  The only thing is to go to the page on google chrome, press f12 , open console and run the command.</p>
  
  <p>So now, I wanted to use the same system in Vine. There"s an extension for google chrome to use vine ( <a href="https://client.vineclient.com/" rel="noreferrer">https://client.vineclient.com/</a> ) and I am trying to use it because original webpage ( vine.co ) is not even useful.</p>
  
  <p>The only difference between twitter and this, is that, in vine client for ^followers^ section, an pop-up comes in the page. And I don!t know if it detects the buttons.</p>
  
  <p>So , the code of the button I am trying to click from original page , ( I took it using developer tools / elements )</p>
  
  <pre><code>&lt;div class="user"&gt;
  &lt;img alt="Tuğçe Nur TEKİN" class="avatar" src="http://v.cdn.vine.co/r/avatars/3C2E4F40F11066473630650847232_pic-r-1397241239141e51579937f.jpg.jpg?versionId=ttIz4CExCjW_4TEnxYbnehPPpXRyzMco"&gt;
  &lt;div class="wrapper"&gt;
  &lt;a class="username" 
  href="https://client.vineclient.com/explore/users/1066473613911363584"&gt;
  Tuğçe Nur TEKİN
  &lt;/a&gt;
  &lt;/div&gt;
  &lt;a class="button follow" data-id="1066473613911363584"&gt;
  &lt;i class="icon"&gt;
  &lt;/i&gt;
  &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The thing to click is here : </p>
  
  <p></p>
  
  <p>When I manually click, it changes into this :</p>
  
  <pre><code>&lt;a class="button unfollow" data-id="1066473613911363584"&gt;&lt;i class="icon"&gt;&lt;/i&gt;&lt;/a&gt;
  </code></pre>
  
  <p>And the command I use to try to click</p>
  
  <pre><code>$(".a.follow").click();
  </code></pre>
  
  <p>The error I get,</p>
  
  <pre><code>TypeError: Cannot read property 'click' of null
  </code></pre>
  
  <p>How can I fix that?
  By the way, in these codes, I couldn"t find actually any ^button^ codes..
  Thanks!</p>
  
  <p>UPDATE</p>
  
  <ol>
  <li>http ://prntscr. com/3pmo2i    </li>
  <li>http ://prntscr. com/3pmoyk </li>
  <li>http ://prntscr. com/3pmpym</li>
  </ol>