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.

這裡顯示腳本的所有版本。 只顯示彼此間有代碼差異的版本。

  • v2.1.1 2024-11-23
  • v2.1.0 2024-11-18

    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 2024-07-24
  • v1.6 2024-07-24

    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 2024-07-24