How Instagram save/like button click listener work when all like/save buttons have same class name?

by user1788736   Last Updated July 13, 2019 01:26 AM

Could you guys explain how instagram web version buttons work? In a same page there are multiple buttons of same class name !(for example more then one like button).How they create click listener for these like buttons when all have same class name and there is no unique value to pass it to click listener?

<button class="dCJp8 afkep _0mzm-"><span class="glyphsSpriteHeart__outline__24__grey_9 u-__7" aria-label="Like"></span></button>

Related Questions

How to I get all instagram sandbox usernames dynamically?

Updated September 15, 2016 08:11 AM

Instafeed.js not showing photos

Updated January 13, 2018 21:26 PM

Force freewall.js to trigger fitWidth method

Updated April 23, 2015 03:11 AM