I cannot find the correct element name for the "heart" that i would like to click via a javascript bookmark listed on http://ink361.com/#/tag/
when viewing page the elements are listed as 'likes' 'a.likes.does' after click and 'a.likes' prior click? - someone should help find the correct name so i can update the code.
I am trying to get this bookmarklet to click all the hearts on the page' I am unsure if the 'likes' is correct or if i should change it to something else, or if another part of the code is incorrect?
How do I change the code to get it to work?
javascript: e = document.getElementsByClassName('likes');
for (i = 0; i < e.length; i++) {
e[i].click();
}
void(0);
If this will not work, basically i am trying to perform a javascript preferably as a bookmarklet to click the likes on the page.
When viewing the page i am unsure the correct class name so currently the javascript is not working for reasons unknown?