Pull-down-to-refresh with adaptive overlay and spinner
This script enables pull-down-to-refresh on mobile browsers. Swiping down from the top of the page reloads the site, similar to native app behavior. It supports both dark and light themes with an adaptive overlay and spinner. The script avoids triggering inside inputs, textareas, and scrollable elements to prevent accidental refreshes. You can also exclude specific domains or subdomains if you don’t want the feature active on certain sites. A cooldown is included to stop repeated reloads in quick succession.