Created
July 19, 2015 07:57
-
-
Save sergioccrr/15ec0afce35c0f521f0a to your computer and use it in GitHub Desktop.
Bookmarklet for view all Instagram likes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
var links = []; | |
var likes = _sharedData.entry_data.PostPage[0].media.likes.nodes; | |
var container = document.querySelector('.-cx-PRIVATE-PostInfo__likesInfo'); | |
for (var i in likes) { | |
links.push('<a href="/' + likes[i].user.username + '/" class="-cx-PRIVATE-UserLink__root">' + likes[i].user.username + '</a>'); | |
} | |
container.innerHTML = links.join(', '); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment