Hey Fynn, thanks for the response. I had a quick look and as is typical with any project like this, it has become outdated! Carousell has updated their website structure a little, meaning that the script can no longer recognise the follow buttons.
For example, the element class is no longer user-card-follow
but we could adjust the script to use xpath and find the required cards with something like:
var elements = $x(“.//*[text()=’Follow’]”);
I tried doing this, but it seems that Carousell have also become much more strict with allowing automatic following. Running the script only allowed me to follow a few people before Carousell aggressively blocked the requests.
Sorry that I can’t be of more help, happy selling!