title: Google Music Beta: Thumbs Up and Down Now Playing using Javascript
body: <p>I am working on my first extension for Google Chrome. I want to be able to hit the "Thumbs Up" button on the Google Music Beta page using my extension. For some reason, the thumbs up button seems to be much more complicated than shuffle, repeat, play, next, and previous. For all of those, the following code works:</p>
  
  <pre><code>chrome.tabs.executeScript(tab_id,
              {
                code: "location.assign('javascript:SJBpost(\"" + command +
                      "\");void 0');",
                allFrames: true
              });
  </code></pre>
  
  <p>where command="playPause", "nextSong", "prevSong", "toggleShuffle", "togglePlay", etc.</p>
  
  <p>I figured a lot of those out using the developer tools to follow the stack trace and see the arguments given to SJBpost. Trying SJBpost with "thumbsUp" returns an error.</p>
  
  <p>Obviously this question is going to be restricted to a smaller crowd since not everyone is going to be able to view the source of Google Music, but if you can help me out, I would greatly appreciate it.</p>
  
  <p>The div for the thumbs up on the Google Music page looks like this:</p>
  
  <pre><code>&lt;div id="thumbsUpPlayer" class="thumbsUp" title="Thumbs up"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Now, I've tried doing this using jQuery:</p>
  
  <pre><code>$("#thumbsUpPlayer").click()
  </code></pre>
  
  <p>But I get TypeError, undefined_method message in the javascript console.</p>
  
  <p>Any help would be greatly appreciated. I am a huge beginner to javascript and plugins, and all of this stuff, and I'm really excited to get these last pieces of the extension together.</p>
  
  <p>Thank you!</p>