Mozzarella

Home

Quick Scroll

While browsing a long webpage in mobile, scrolling back to top or scrolling directly to bottom is not easy - repeatedly swiping up/down is a pain. Aiming to alleviate this inconvenience, this add-on provides a button/icon on the addressbar of *Firefox for Android*. When the webpage is at top, clicking on the button scrolls the page to bottom. Otherwise, the page scrolls to top. The scrolling is animated and smooth.

In case there are too many buttons/icons on the addressbar, this add-on's button may shift as a text option 'Quick Scroll' in a dropdown, but still easily accessible.


# Roadblocks

- My plan was to change icon to 'scroll-down' when the webpage is at top, and to 'scroll-up' when the webpage is at end. But, `pageAction.setIcon()` is [not supported in Firefox for Android](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pageAction/setIcon#Browser_compatibility). So, there goes my dream.

- The pageAction icon moves to a dropdown in text form. I thought that `pageAction.setTitle()` API may be able to change that text ('Scroll Up', 'Scroll Down'). But again it is [not supported in Firefox for Android](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pageAction/setTitle#Browser_compatibility).


# Credits

- <div>Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY</div>

Install
Click on the easily accessible icon to scroll quickly. When there are too many icons on addressbar, the add-on icon may move as a text button 'Quick Scroll' in a dropdown. This is still easily accessible.