title: How to click programmatically on "Display images below" in Gmail using jQuery?
body: <p>I am creating a Google Chrome extension that adds a keyboard shortcut for the link &quot;Display images below&quot; in Gmail using jQuery.</p>
  <p>I have tried the following to simulate the click unsuccessfully:</p>
  <pre><code>$(&quot;#canvas_frame&quot;).contents().find(&quot;span:contains(Display images below)&quot;).mousedown().mouseup().click();
  $(&quot;#canvas_frame&quot;).contents().find(&quot;span:contains(Display images below)&quot;).click();
  $(&quot;#canvas_frame&quot;).contents().find(&quot;span:contains(Display images below)&quot;).mousedown();
  $(&quot;#canvas_frame&quot;).contents().find(&quot;span:contains(Display images below)&quot;).mouseup();
  $(&quot;#canvas_frame&quot;).contents().find(&quot;span:contains(Display images below)&quot;).trigger('click');
  </code></pre>
  <p>Could someone point me in the right direction?</p>