Mobile Pull to Refresh

Adds pull-to-refresh functionality to Funny Junk mobile

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
Emanon
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
3
Βαθμολογίες
0 0 0
Έκδοση
1.0
Δημιουργήθηκε την
02/02/2026
Ενημερώθηκε την
02/02/2026
Μέγεθος
1 KB
Άδεια
MIT
Εφαρμόζεται σε

Description
Adds a native-style "Pull-to-Refresh" gesture to the Funny Junk mobile site. Many mobile browsers or specific web-apps lack a smooth pull-to-refresh mechanism. This script monitors your touch gestures at the top of the page; once you pull down past a specific threshold, the page will automatically reload.

Features
Lightweight: Minimal impact on browser performance.

Scroll-Aware: Only triggers when you are at the very top of the page (scrollTop = 0), preventing accidental refreshes while scrolling up.

Optimized for Mobile: Uses passive event listeners to ensure smooth scrolling.

Detailed Instructions
How to use:
Installation: Install a UserScript manager like Tampermonkey, Greasemonkey, or the Userscripts extension for Safari.

Interaction: Navigate to Funny Junk. Ensure you are at the top of the feed.

The Gesture: Touch the screen and drag your finger downward.

The Trigger: Once you have pulled down approximately 150 pixels, release your finger to trigger a page refresh.

Configuration:
If you want to change how far you need to pull to trigger the refresh, you can edit the following line in the script:

const threshold = 150; — Lower this number (e.g., 100) for a "shorter" pull, or increase it (e.g., 200) if you find yourself refreshing by accident too often.

Compatibility:
Tested on mobile browsers (Chrome/Safari) via UserScript managers.

Designed specifically for the funnyjunk.com domain.

Why use this?
Funny Junk's mobile interface occasionally hides the browser's native pull-to-refresh behavior depending on the wrapper or browser settings. This script restores that functionality using standard JavaScript touch events, making the browsing experience feel more like a native app.