Created
March 3, 2017 13:12
-
-
Save dwightgunning/5569752469ef833bf7c4b5cff491c39b to your computer and use it in GitHub Desktop.
CrowdFire bookmarklets
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
// 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