I would like to scroll down, up to the maximum end of the scroll on https://www.facebook.com/friends/requests page, but I quite don't understand how it works here.
When I scroll by myself my cursor have to be in the area of people friendship request so the scroll bar is visible here if I scrolled down myself and scroll bar is visible I can use
var element = document.querySelector('.x1p6kkr5'); element.scrollIntoView();
in browser console to make it scroll down, but if I didn't scrolled down it myself completely it doesn't work. Case it doesn't work at all is when scroll bar is invisible here I receive this:
VM1363:1 Uncaught TypeError: Cannot read properties of null (reading 'scrollIntoView')
at <anonymous>:1:60
I wonder how I can make it scroll down without me needing to hold mouse cursor on friends request tab and make it scroll without my assistance on first scroll?