1

So I have used this function to scroll down to other pages it works fine. But when it tries to use this function on this website Www.holonis.com and then click on my follower's list go down. It would not let me go down. The page just stays the same nothing Changes can someone please help me. Btw here is the script that I'm using

function autoScrolling() {window.scrollTo(0,document.body.scrollHeight);}setInterval(autoScrolling,500);
inder
  • 11
  • 3

1 Answers1

0

From looking at the page source, the code adds an event listener to document.body

This code fixed it but who knows what else it breaks in the process:

element.outerHTML = element.outerHTML;

Taken from Javascript/DOM: How to remove all events of a DOM object?

AnilRedshift
  • 7,937
  • 7
  • 35
  • 59