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 10-08-2025

    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 08-08-2025
    • 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 08-08-2025