Scroll to Top Button

Adds a scroll to top button at the bottom right of the page when scrolled to the bottom, and hides it at the top.

These are versions of this script where the code was updated. Show all versions.

  • v2.1.1 23.11.2024
  • v2.1.0 18.11.2024

    Scroll to Top Button - Changelog

    Version 2.1.0

    Added

    • Advanced smooth scrolling system with multiple easing functions
    • Dynamic scroll duration based on scroll distance
    • Configuration options for scroll behavior
    • Breakpoint system for different scroll distances
    • Performance optimized animation using requestAnimationFrame

    Changed

    • Improved button visibility logic
    • Enhanced transition animations
    • Better handling of dynamic content
    • Upgraded SVG icon implementation

    Fixed

    • Issues with lazy-loaded content detection
    • Button visibility during rapid scrolling
    • Z-index conflicts with other fixed elements

    Version 2.0.0

    Added

    • MutationObserver for dynamic content support
    • Debounced scroll event handling
    • Configurable show/hide thresholds
    • Hover and click animations
    • SVG icon replacement for text arrow

    Changed

    • Restructured code organization
    • Improved performance optimizations
    • Enhanced visibility control system
    • Better shadow effects and transitions

    Fixed

    • Multiple button creation issues
    • Scroll position calculation accuracy
    • Button visibility in complex layouts

    Thanks for the user named LeFiXER. I fixed some issues regarding to this userscript.

  • v1.6.1 24.07.2024
  • v1.6 24.07.2024

    Scroll to Top Button Userscript Changelog

    Version 1.6

    Date: 2024-07-24

    Changes:

    • Button Width Adjustment: The width of the "Scroll to Top" button was adjusted to ensure a more circular appearance, as it previously appeared more oval.
  • v1.5 24.07.2024