Try this - It should definitely work as it is working fine with me!
set user agent("Chrome")
navigate("https://www.instagram.com/maccosmetics/","Wait")
click(<href="/maccosmetics/following/">,"Left Click","No")
set(#ClassName,$scrape attribute(<class="_gs38e">,"class"),"Global")
run javascript("var objDiv = document.getElementsByClassName(\"{#ClassName}\");
objDiv[0].scrollTop = objDiv[0].scrollHeight;")