Adds a scroll to top button at the bottom right of the page when scrolled to the bottom, and hides it at the top.
Από την
This userscript adds a convenient "Scroll to Top" button to web pages. The button appears at the bottom right of the page when scrolled to the bottom, and hides when at the top. It’s designed to enhance the browsing experience by providing quick navigation back to the top of the page.
Button Creation:
opacity and visibility.Scroll Handling:
handleScroll function checks the scroll position of the page and controls the visibility of the button.Scroll to Top Functionality:
window.scrollTo.To use this userscript, you need a userscript manager like Violentmonkey, Tampermonkey, or Greasemonkey. Follow these steps:
Install a Userscript Manager:
Adding the Script: