Using a bookmarklet to click Gmail's “Show original” button
问题 When I have an email open in Gmail, I'm trying to click the "Show original" dropdown menu item programmatically. The IDs of all the elements change dynamically with each email, so that's not a reliable way to find the menu item I'm trying to click. To start, I'm just trying to make a piece of JavaScript that clicks it in Chrome's console. After loading jQuery, I've tried this: jQuery('div[role=menuitem]:contains(Show original)').click(); While it seems to select the proper div and click it,