Trying to click all of the visible "follow" buttons on the page as I scroll down it, but not the "following" button that it becomes after being clicked as that would unfollow. I have the below code that will click the visible buttons but after that it does nothing, even if the same page is reloaded. I imagine I need a loop or some such thing. I'm obviously no programmer and having no luck. Any ideas for me?
One of the pages Im trying to work on: http://ift.tt/1BcEVCw
// ==UserScript==
// @name poshmark
// @namespace poshmark_follower
// @include https://poshmark.com/*
// @version 1
// @grant none
// ==/UserScript==
$('a[track_action="follow"]:visible').click();
Aucun commentaire:
Enregistrer un commentaire