Skip to content

Instantly share code, notes, and snippets.

@hermesthecat
Forked from Terrance/ActLogPubLikes.js
Last active August 29, 2015 14:09
Show Gist options
  • Save hermesthecat/4c4e32f5accbbddc6e92 to your computer and use it in GitHub Desktop.
Save hermesthecat/4c4e32f5accbbddc6e92 to your computer and use it in GitHub Desktop.
// for all public tags
$(".sx_c87e68").each(function(i, e) {
// navigate up to the root of the item
var r = $(e).parent().parent().parent().parent().parent().next();
var id = r.parent().attr("id");
// open the dropdown
r.find("i").click();
// find the corresponding menu
$(".accelerate").find("a").each(function(j, l) {
if ($(l).data("store").domID == id) {
// click the "Unlike" option
$($(l).find("span")[0]).click();
}
});
});
// click all the "Load more" links
$("._3nt5.sectionContent._56d8").click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment