Skip to content

Instantly share code, notes, and snippets.

@ayyash
Created September 1, 2018 14:38
Show Gist options
  • Save ayyash/a68a11228d48f242e8cdc3ab7be03316 to your computer and use it in GitHub Desktop.
Save ayyash/a68a11228d48f242e8cdc3ab7be03316 to your computer and use it in GitHub Desktop.
Scroll bookmarklet: bookmark that scrolls the current page slowly, helps in reading long articles without losing focus
javascript:(function()%7Bif(!window.areScrolling)%7Bwindow.areScrolling%3Dwindow.setInterval(function()%7Bwindow.scrollBy(0%2C1)%3B%7D%2C100)%3B%7Delse%7Bwindow.clearInterval(window.areScrolling)%3Bwindow.areScrolling%3Dnull%3B%7D%7D)()
@ayyash
Copy link
Author

ayyash commented Sep 3, 2018

In bookmark manager in chrome, Add new Bookmark, paste the code in Url, and place the bookmark in Bookmarks Bar
When in long medium articles that you can no longer keep focus, click on the bookmarklet in the bookmarks bar, it starts slowly scrolling down the page, it helped me read as much as I possibly can of long medium articles. Click again to stop scrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment