Skip to content

Instantly share code, notes, and snippets.

@dwightgunning
Created March 3, 2017 13:12
Show Gist options
  • Save dwightgunning/5569752469ef833bf7c4b5cff491c39b to your computer and use it in GitHub Desktop.
Save dwightgunning/5569752469ef833bf7c4b5cff491c39b to your computer and use it in GitHub Desktop.
CrowdFire bookmarklets
// Prepend with 'javascript:' in Chrome
// Hat tip to Nick Parsons: https://github.com/nparsons08
// Follow
function follow() {var items = document.querySelectorAll("[data-action='FOLLOW']"); console.log("Following " + items.length + " items..."); for (i=0; i<items.length; i++) {items.item(i).click();}}; follow();
// Unfollow
function unfollow() {var items = document.querySelectorAll("[data-action='UNFOLLOW']"); console.log("Unfollowing " + items.length + " items..."); for (i=0; i<items.length; i++) {items.item(i).click();}}; unfollow();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment