Mobile Pull Down to Refresh

Enables pull-down-to-refresh on mobile browsers. Swipe down to reload the page, mimicking native app behavior.

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

  • v1.2 2025-08-10

    New Features

    • Added support for excluding specific domains and subdomains.
    • Supports wildcard TLDs (e.g. example.*)
    • Supports wildcard subdomains (e.g. *.example.com)
    • You can now customize exclusions easily via two arrays: excludedDomains and excludedSubdomains.

    Enhancements

    • Refactored exclusion logic using regular expressions for flexible and accurate matching.
    • Added inline comments and examples to guide users in modifying the script.
    • Updated script description to reflect new capabilities and improve clarity.

    Behavioral Improvements

    • Improved gesture detection to avoid triggering refresh inside scrollable elements like <textarea> and <input>.
    • Ensures refresh only occurs when page is scrolled to the top and gesture exceeds threshold.

    Demonstration

    • By default exclude some domains
  • v1.1 2025-08-08
    • Added support for excluding scrollable elements like <textarea> and <div> with overflow
    • Improved refresh detection for smoother pull-down experience
    • Fixed issue where refresh triggered unintentionally on nested scroll areas
    • Update homepage
  • v1.0 2025-08-08

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址