我要向我的朋友补充在Facebook网页上显示的所有情况。 I ve see Bookmarklet: Click All Common Buttons On Tumblr,而且我正在尝试像样的东西。
javascript:e=document.getElementsByTagName( a );for(i=0;i<e.length;i++) {if(e[i].id.indexOf( addButton )>=0)e[i].click();}void(0);
because that s the class of the a elements in the buttons, which are like
<a class="uiIconText addButton" style="padding-left: 18px;"><i class="img sp_7b7xx5 sx_a97ca4" style="top: 2px;"></i>Aggiungi agli amici</a>
(in Italian). But nothing happens (and I m using Firefox). The a element appears to be empty, where is the actual link?