DEV Community

Luigui Moreno
Luigui Moreno

Posted on

Scroll to the end of x bookmarks

var divElement = document.querySelector('div[aria-label="Timeline: Bookmarks"].css-175oi2r');

var scrollInterval = setInterval(() => { divElement.firstChild.lastChild.scrollIntoView({ behavior: "smooth" }); }, 2000)
// use this to stop
//clearInterval(scrollInterval)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)