Hacking the Browser

Endless Scroll Bookmarklet

bookmarklet gif

I’m pretty sure at some point we’ve all had the following thought - “Wow, if only I could spend even more of my life scrolling.” Now you can!!! DRAG THIS LINK INTO YOUR BOOKMARKS FOR ENDLESS SCROLLING FUN!

This was a simple little bookmarklet. I used the setInterval function to call a function that increases the padding in set intervals. It

//this will run the callback function every t milliseconds
interval = setInterval(callbackToIncrementPadding, t);

And then inside my callback, I call a function that actually send that info to the browser.

function setSize() {
  document.body.style.paddingTop = sizeTxt;

Finally, I used the Bookmarkleter to convert my javascript into a bookmarklet.